Documentation ¶
Index ¶
- type AnomalyGroupNotifier
- func (n *AnomalyGroupNotifier) ExampleSend(ctx context.Context, alert *alerts.Alert) error
- func (n *AnomalyGroupNotifier) RegressionFound(ctx context.Context, commit, previousCommit provider.Commit, ...) (string, error)
- func (n *AnomalyGroupNotifier) RegressionMissing(ctx context.Context, commit, previousCommit provider.Commit, ...) error
- func (n *AnomalyGroupNotifier) UpdateNotification(ctx context.Context, commit, previousCommit provider.Commit, ...) error
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.