Documentation ¶
Index ¶
- Constants
- type Advanced
- type Config
- type Group
- type Interceptor
- func (i *Interceptor) BelongTo() (componentTypes []string)
- func (i *Interceptor) Category() api.Category
- func (i *Interceptor) Config() interface{}
- func (i *Interceptor) IgnoreRetry() bool
- func (i *Interceptor) Init(context api.Context) error
- func (i *Interceptor) Intercept(invoker source.Invoker, invocation source.Invocation) api.Result
- func (i *Interceptor) Order() int
- func (i *Interceptor) Start() error
- func (i *Interceptor) Stop()
- func (i *Interceptor) String() string
- func (i *Interceptor) Type() api.Type
- type Labels
- type Matcher
- type Rule
Constants ¶
View Source
const ( ModeRegexp = "regexp" ModeNoData = "noData" MatchTypeAll = "all" MatchTypeAny = "any" )
View Source
const NoDataKey = "NoDataAlert"
View Source
const Type = "logAlert"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { interceptor.ExtensionConfig `yaml:",inline"` Matcher Matcher `yaml:"matcher,omitempty"` Labels Labels `yaml:"labels,omitempty"` Additions map[string]string `yaml:"additions,omitempty"` Ignore []string `yaml:"ignore,omitempty"` Advanced Advanced `yaml:"advanced,omitempty"` Template *string `yaml:"template,omitempty"` SendOnlyMatched bool `yaml:"sendOnlyMatched,omitempty"` }
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
func (*Interceptor) BelongTo ¶ added in v1.3.0
func (i *Interceptor) BelongTo() (componentTypes []string)
func (*Interceptor) Category ¶
func (i *Interceptor) Category() api.Category
func (*Interceptor) Config ¶
func (i *Interceptor) Config() interface{}
func (*Interceptor) IgnoreRetry ¶ added in v1.3.0
func (i *Interceptor) IgnoreRetry() bool
func (*Interceptor) Intercept ¶
func (i *Interceptor) Intercept(invoker source.Invoker, invocation source.Invocation) api.Result
func (*Interceptor) Order ¶ added in v1.3.0
func (i *Interceptor) Order() int
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
Click to show internal directories.
Click to hide internal directories.