Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OpniDisconnect *alertingv1.AlertCondition = &alertingv1.AlertCondition{ Name: "Disconnected Opni Agent {{ .agentId }} ", Description: "Opni agent {{ .agentId }} has been disconnected for more than {{ .timeout }}", Labels: []string{"opni", "agent", "system"}, Severity: alertingv1.Severity_CRITICAL, AlertType: &alertingv1.AlertTypeDetails{Type: &alertingv1.AlertTypeDetails_System{}}, }
View Source
var RequiredCortexWebhookAnnotationIdentifiers = []string{"conditionId"}
Functions ¶
func ParseAlertManagerWebhookPayload ¶
func ParseAlertManagerWebhookPayload(annotations []gjson.Result) ([]*alertingv1.TriggerAlertsRequest, []error)
Types ¶
type MockCortexPayload ¶
func NewSimpleMockAlertManagerPayloadFromAnnotations ¶
func NewSimpleMockAlertManagerPayloadFromAnnotations(ann map[string]string) *MockCortexPayload
Click to show internal directories.
Click to hide internal directories.