alert

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerts

type Alerts struct {
	AlertsByClusterName map[string]EntityAlerts `json:"alerts_by_cluster_name"`
}

func NewAlerts

func NewAlerts() *Alerts

func (*Alerts) AddEntityAlerts

func (alerts *Alerts) AddEntityAlerts(entityAlerts EntityAlerts)

func (*Alerts) Empty

func (alerts *Alerts) Empty() bool

func (*Alerts) String

func (alerts *Alerts) String() string

type EntityAlert

type EntityAlert struct {
	ClusterName         string            `json:"cluster_name"`
	Namespace           string            `json:"namespace,omitempty"`
	Name                string            `json:"name"`
	Kind                string            `json:"kind"`
	Node                string            `json:"node,omitempty"`
	Messages            []string          `json:"messages,omitempty"`
	Events              []string          `json:"events,omitempty"`
	LogsByContainerName map[string]string `json:"logs_by_container_name,omitempty"`
	Timestamp           time.Time         `json:"timestamp"`
}

func (*EntityAlert) String

func (entityAlert *EntityAlert) String() string

type EntityAlerts

type EntityAlerts []*EntityAlert

func (EntityAlerts) Len

func (alerts EntityAlerts) Len() int

func (EntityAlerts) Less

func (alerts EntityAlerts) Less(i, j int) bool

func (EntityAlerts) Swap

func (alerts EntityAlerts) Swap(i, j int)

Jump to

Keyboard shortcuts

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