Documentation
¶
Index ¶
Constants ¶
View Source
const (
GrantDriftCheckEvent = "grant_drift_check"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManager ¶
type AlertManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(notificationSender NotificationSender, logger log.Logger) *AlertManager
func (*AlertManager) NotifyDriftCheck ¶
func (m *AlertManager) NotifyDriftCheck(ctx context.Context, req NotifyDriftCheckRequest) error
NotifyDriftCheck sends a single summary alert to adminTeam listing all drifted dedup_key: drift-check:admin:{hash(sorted accountIDs)}
type AlertManagerConfig ¶
type NoOpSender ¶
type NoOpSender struct{}
type NotificationSender ¶
NotificationSender is the interface for delivering events to a notifier.
func GetAlertManagerSender ¶
func GetAlertManagerSender(cfg AlertManagerConfig) NotificationSender
type NotifyDriftCheckRequest ¶
type SirenClient ¶
type SirenClient struct {
// contains filtered or unexported fields
}
func NewSirenClient ¶
func NewSirenClient(host string, environment string) *SirenClient
Click to show internal directories.
Click to hide internal directories.