Documentation ¶ Index ¶ type Evaluator func New(name string, expr string, forDuration time.Duration) (*Evaluator, error) func (e *Evaluator) Evaluate(ctx context.Context, queryFn rules.QueryFunc, timestamps []time.Time) ([]Event, error) type Event type EventType Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Evaluator ¶ type Evaluator struct { // contains filtered or unexported fields } func New ¶ func New(name string, expr string, forDuration time.Duration) (*Evaluator, error) func (*Evaluator) Evaluate ¶ func (e *Evaluator) Evaluate( ctx context.Context, queryFn rules.QueryFunc, timestamps []time.Time, ) ([]Event, error) type Event ¶ type Event struct { Time time.Time Labels map[string]string Type EventType } type EventType ¶ type EventType int const ( EventOpened EventType = iota EventResolved ) Source Files ¶ View all Source files evaluator.go Click to show internal directories. Click to hide internal directories.