Documentation ¶
Index ¶
- func SendAlerts(ctx context.Context, alertInput *destinationsV2.AlertInput, ...)
- func SendNotifications(ctx context.Context, notificationInput destinationsV2.NotificationInput, ...)
- type AlertCreatedPayload
- type AlertUpdatedPayload
- type ErrorAlertPayload
- type EventAlertPayload
- type LogAlertPayload
- type MetricAlertPayload
- type SessionAlertPayload
- type TraceAlertPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendAlerts ¶
func SendAlerts(ctx context.Context, alertInput *destinationsV2.AlertInput, destinations []model.AlertDestination)
func SendNotifications ¶
func SendNotifications(ctx context.Context, notificationInput destinationsV2.NotificationInput, destinations []model.AlertDestination)
Types ¶
type AlertCreatedPayload ¶
type AlertUpdatedPayload ¶
type ErrorAlertPayload ¶
type EventAlertPayload ¶
type EventAlertPayload struct { Event string AlertName string Query string Count float64 Function modelInputs.MetricAggregator FunctionColumn string Threshold float64 BelowThreshold bool AlertURL string }
type LogAlertPayload ¶
type MetricAlertPayload ¶
type MetricAlertPayload struct { Event string AlertName string Query string Count float64 Function modelInputs.MetricAggregator FunctionColumn string Threshold float64 BelowThreshold bool DashboardURL string }
type SessionAlertPayload ¶
Click to show internal directories.
Click to hide internal directories.