notify

package
v0.0.0-...-808d8a5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CulpritNotifier

type CulpritNotifier interface {
	// Sends out notification to users about the detected culprit.
	NotifyCulpritFound(ctx context.Context, culprit *pb.Culprit, subscription *sub_pb.Subscription) (string, error)

	// Sends out notification to users about the detected anomalies.
	NotifyAnomaliesFound(ctx context.Context, anomalies []*pb.Anomaly, subscription *sub_pb.Subscription) (string, error)
}

TODO(wenbinzhang): considering using specific type for issue ID instead of 'string'.

func GetDefaultNotifier

func GetDefaultNotifier(ctx context.Context, cfg *config.InstanceConfig, commitURLTemplate string) (CulpritNotifier, error)

newNotifier returns a newNotifier Notifier.

type DefaultCulpritNotifier

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

DefaultCulpritNotifier sends notifications.

func (*DefaultCulpritNotifier) NotifyAnomaliesFound

func (n *DefaultCulpritNotifier) NotifyAnomaliesFound(ctx context.Context, anomalies []*pb.Anomaly, subscription *sub_pb.Subscription) (string, error)

Creates a bug in Buganizer about the detected anomalies.

func (*DefaultCulpritNotifier) NotifyCulpritFound

func (n *DefaultCulpritNotifier) NotifyCulpritFound(ctx context.Context, culprit *pb.Culprit, subscription *sub_pb.Subscription) (string, error)

Creates a bug in Buganizer about the detected culprit.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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