notifier

package
v0.0.0-...-3c98ef5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnomalyGroupNotifier

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

AnomalyGroupNotifier struct used to group regression and trigger group action.

func NewAnomalyGroupNotifier

func NewAnomalyGroupNotifier(ctx context.Context, anomalygrouper ag.AnomalyGrouper) *AnomalyGroupNotifier

NewAnomalyGroupNotifier returns a new AnomalyGroupNotifier instance.

func (*AnomalyGroupNotifier) ExampleSend

func (n *AnomalyGroupNotifier) ExampleSend(ctx context.Context, alert *alerts.Alert) error

ExampleSend is for dummy data. Do nothing!

func (*AnomalyGroupNotifier) RegressionFound

func (n *AnomalyGroupNotifier) RegressionFound(
	ctx context.Context,
	commit,
	previousCommit provider.Commit,
	alert *alerts.Alert,
	cl *clustering2.ClusterSummary,
	frame *frame.FrameResponse,
	regressionID string) (string, error)

RegressionFound implements notify.Notifier. Invoked when a new regression is detected.

func (*AnomalyGroupNotifier) RegressionMissing

func (n *AnomalyGroupNotifier) RegressionMissing(
	ctx context.Context,
	commit,
	previousCommit provider.Commit,
	alert *alerts.Alert,
	cl *clustering2.ClusterSummary,
	frame *frame.FrameResponse,
	threadingReference string) error

RegressionMissing implements notify.Notifier. Invoked when a previous regression is recovered.

func (*AnomalyGroupNotifier) UpdateNotification

func (n *AnomalyGroupNotifier) UpdateNotification(ctx context.Context, commit, previousCommit provider.Commit, alert *alerts.Alert, cl *clustering2.ClusterSummary, frame *frame.FrameResponse, notificationId string) error

UpdateRegressionNotification implements Transport.

Jump to

Keyboard shortcuts

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