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
Click to show internal directories.
Click to hide internal directories.