detector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func (*Default) Detect added in v1.0.0

func (d *Default) Detect() error

func (*Default) Name added in v1.0.0

func (d *Default) Name() string

func (*Default) Schedule added in v1.0.0

func (d *Default) Schedule() string

func (*Default) Start added in v1.0.0

func (d *Default) Start(ctx context.Context)

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) Detect

func (a *Simple) Detect() error

func (*Simple) FilterTriggers

func (a *Simple) FilterTriggers(n common.Notifier, vr *common.VerifyEndpoints) *common.VerifyEndpoints

func (*Simple) Name

func (a *Simple) Name() string

func (*Simple) Schedule

func (a *Simple) Schedule() string

func (*Simple) Start

func (a *Simple) Start(ctx context.Context)

func (*Simple) TriggerKey

func (a *Simple) TriggerKey(n common.Notifier, ep *common.VerifyEndpoint) string

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
}

Jump to

Keyboard shortcuts

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