log

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(logger *zap.Logger) *Factory

func (*Factory) NewProvider

func (f *Factory) NewProvider(providerCfg *config.PipedAnalysisProvider) (provider Provider, err error)

NewProvider generates an appropriate provider according to analysis provider config.

type Provider

type Provider interface {
	analysisprovider.Provider
	// RunQuery runs the given query against the log provider,
	// and then checks if there is at least one error log..
	RunQuery(ctx context.Context, query string) (result bool, err error)
}

Provider represents a client for log provider which provides logs for analysis.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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