Documentation
¶
Index ¶
- Constants
- type Default
- type DefaultOptions
- type NotifierDefaultConfiguration
- type Simple
- func (a *Simple) Detect() error
- func (a *Simple) FilterTriggers(n common.Notifier, vr *common.VerifyEndpoints) *common.VerifyEndpoints
- func (a *Simple) Name() string
- func (a *Simple) Schedule() string
- func (a *Simple) Start(ctx context.Context)
- func (a *Simple) TriggerKey(n common.Notifier, ep *common.VerifyEndpoint) string
- func (a *Simple) UpdateTriggers(n common.Notifier, es *common.VerifyEndpoints)
- type SimpleOptions
Constants ¶
View Source
const DefaultDetectorName = "Default"
View Source
const DefaultDetectorType = "Default"
DefaultDetectorType is the type identifier used in the V3 YAML config for Default pipeline detectors.
View Source
const SimpleDetectorName = "Simple"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶ added in v1.0.0
type Default struct {
// contains filtered or unexported fields
}
func NewDefault ¶ added in v1.0.0
func NewDefault(options *DefaultOptions, observability *common.Observability) *Default
type DefaultOptions ¶ added in v1.0.0
type DefaultOptions struct {
Config *common.DetectorDefaultConfig
Triggers *common.Triggers
Memory *common.Memory
ObserverDefaultConfigs []*common.ObserverConfig
ObserverDefaults []common.ObserverDefault
VerifierDefaults []common.VerifierDefaultInterface
NotifierDefaultConfigs []*common.NotifierDefaultConfiguration
}
DefaultOptions holds the configuration for a single Default pipeline detector instance.
type NotifierDefaultConfiguration ¶ added in v1.0.0
type NotifierDefaultConfiguration = common.NotifierDefaultConfiguration
NotifierDefaultConfiguration wraps a NotifierDefault with its trigger probability threshold.
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
func NewSimple ¶
func NewSimple(options *SimpleOptions, observability *common.Observability) *Simple
func (*Simple) FilterTriggers ¶
func (a *Simple) FilterTriggers(n common.Notifier, vr *common.VerifyEndpoints) *common.VerifyEndpoints
func (*Simple) TriggerKey ¶
func (*Simple) UpdateTriggers ¶
func (a *Simple) UpdateTriggers(n common.Notifier, es *common.VerifyEndpoints)
type SimpleOptions ¶
type SimpleOptions struct {
Name string
Schedule string
Countries []string
Triggers *common.Triggers
Sources []common.SourceEndpointInterface
ObserverConfigurations []*common.ObserverConfiguration
VerifierConfigurations []*common.VerifierConfiguration
NotifierConfigurations []*common.NotifierConfiguration
}
Click to show internal directories.
Click to hide internal directories.