Documentation
¶
Overview ¶
Package alert provides an abstraction for sending alerts/notifications from Flow workflows and activities. The concrete implementation can be replaced later (Slack, PagerDuty, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alert ¶
type Alert struct {
Severity Severity `json:"severity"`
Message string `json:"message"`
Component string `json:"component,omitempty"`
Operation string `json:"operation,omitempty"`
TaskID string `json:"task_id,omitempty"`
Details map[string]string `json:"details,omitempty"`
}
Alert represents a single alert to be sent through the alerting system.
Click to show internal directories.
Click to hide internal directories.