alerts

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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 NewCmdAlerts

func NewCmdAlerts() *cobra.Command

NewCmdAlerts implements base alert command.

func NewCmdListAlerts

func NewCmdListAlerts() *cobra.Command

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.

type Labels

type Labels struct {
	Alertname string `json:"alertname"`
	Severity  string `json:"severity"`
}

Labels represents a set of labels associated with an alert.

type Status

type Status struct {
	State string `json:"state"`
}

Status represents a set of state associated with an alert.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL