logalert

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "logAlert"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Matcher Matcher `yaml:"matcher,omitempty"`
	Labels  Labels  `yaml:"labels,omitempty"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Interceptor

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

func (*Interceptor) Category

func (i *Interceptor) Category() api.Category

func (*Interceptor) Config

func (i *Interceptor) Config() interface{}

func (*Interceptor) Init

func (i *Interceptor) Init(context api.Context) error

func (*Interceptor) Intercept

func (i *Interceptor) Intercept(invoker source.Invoker, invocation source.Invocation) api.Result

func (*Interceptor) Start

func (i *Interceptor) Start() error

func (*Interceptor) Stop

func (i *Interceptor) Stop()

func (*Interceptor) String

func (i *Interceptor) String() string

func (*Interceptor) Type

func (i *Interceptor) Type() api.Type

type Labels

type Labels struct {
	FromHeader []string `yaml:"from,omitempty"`
}

type Matcher

type Matcher struct {
	Regexp       []string `yaml:"regexp,omitempty"`
	Contains     []string `yaml:"contains,omitempty"`
	TargetHeader string   `yaml:"target,omitempty"`
}

Jump to

Keyboard shortcuts

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