stream

package
v0.56.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: BSD-2-Clause, BSD-3-Clause, PostgreSQL Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidPid int32 = -1
View Source
const StreamReadyThreshold time.Duration = 3 * time.Second
View Source
const UnknownPid int32 = 0

Variables

This section is empty.

Functions

func AnalyzeStreamInGroups

func AnalyzeStreamInGroups(logLines []state.LogLine, now time.Time, server *state.Server, logger *util.Logger) (state.TransientLogState, state.LogFile, []state.LogLine, error)

AnalyzeStreamInGroups - Takes in a set of parsed log lines and analyses the lines that are ready, and returns the rest

The caller is expected to keep a repository of "tooFreshLogLines" that they can send back in again in the next call, combined with new lines received

func LogTestAnyEvent

func LogTestAnyEvent(server *state.Server, logFile state.LogFile, logTestSucceeded chan<- bool)

LogTestAnyEvent - Checks for any log message (used on log pipelines that take longer than 10 seconds, e.g. Azure Event Hub)

func LogTestCollectorIdentify

func LogTestCollectorIdentify(server *state.Server, logFile state.LogFile, logTestSucceeded chan<- bool)

LogTestCollectorIdentify - Checks for the special "pganalyze-collector-identify:" event (used on log pipelines that forward messages under than 10 seconds)

func LogTestNone

func LogTestNone(server *state.Server, logFile state.LogFile, logTestSucceeded chan<- bool)

LogTestNone - Don't confirm the log test

Types

type LogLineReadiness added in v0.42.1

type LogLineReadiness int
const (
	LogLineDefer LogLineReadiness = iota
	LogLineReady
	LogLineDiscard
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL