Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListAlerts ¶
func ListAlerts(cmd *alertCmd)
ListAlerts provides alerts based on input severity.
func NewCmdListAlerts ¶
NewCmdListAlerts implements the list alert functionality.
Types ¶
type Alert ¶
type Alert struct { Labels Labels `json:"labels"` Status Status `json:"status"` Annotations Annotations `json:"annotations"` }
Alert represents a set of above declared struct Labels,Status and annoataions
type Annotations ¶
type Annotations struct {
Summary string `json:"summary"`
}
Annotations represents a set of summary/description associated with an alert.
Click to show internal directories.
Click to hide internal directories.