alertsink

package
v0.0.0-...-f75f0dd Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Oncall = "oncall"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertTemplate

type AlertTemplate struct {
	Labels         map[string]string
	Annotations    map[string]string
	FiringAlerts   []sharedtools.Alert
	ResolvedAlerts []sharedtools.Alert
}

type OncallGetter

type OncallGetter struct {
}

type OncallGetterInterface

type OncallGetterInterface interface {
	// contains filtered or unexported methods
}

type OncallRequest

type OncallRequest struct {
	Title                    string              `json:"title,omitempty"`
	State                    string              `json:"state,omitempty"`
	SlackMessage             string              `json:"slack_message,omitempty"`
	WebMessage               string              `json:"web_message,omitempty"`
	SimpleMessage            string              `json:"simple_message,omitempty"`
	TelegramMessage          string              `json:"telegram_message,omitempty"`
	EscalationChain          string              `json:"escalation_chain,omitempty"`
	AlertmanagerOriginAlerts []sharedtools.Alert `json:"alertmanager_messages,omitempty"`
}

type OncallSetter

type OncallSetter struct {
}

type OncallSetterInterface

type OncallSetterInterface interface {
	// contains filtered or unexported methods
}

type OncallSink

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

func NewOncallSink

func NewOncallSink(runbooks *config.RunbooksConfig) *OncallSink

func (OncallSink) SendAlerts

func (o OncallSink) SendAlerts(alerts []sharedtools.Alert) (accepted []string, resolved []string, errors []error)

type SinkInterface

type SinkInterface interface {
	SendAlerts(alerts []sharedtools.Alert) (accepted []string, resolved []string, errors []error)
}

func NewAlertSink

func NewAlertSink(sinkName string, runbooks *config.RunbooksConfig) SinkInterface

Jump to

Keyboard shortcuts

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