currentalert

package
v0.0.0-...-28ca6ac Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertState

type AlertState struct {
	FingerPrint model.Fingerprint
	Status      model.AlertStatus
	Labels      model.LabelSet
	Annotations model.LabelSet
}

AlertState current alert state

type CurrentAlerts

type CurrentAlerts interface {
	AddAlert(AlertState) *currentAlertStruct
	AlertGC(AlertState) error
	DeleteAlert(model.Fingerprint) error
	ListAlerts() map[model.Fingerprint]*currentAlertStruct
	HandleAlert(model.Fingerprint, client.Client, int) (*currentAlertStruct, error)
	GetRollingUpgradeAlertCount() int
}

CurrentAlerts interface

func GetCurrentAlerts

func GetCurrentAlerts() CurrentAlerts

GetCurrentAlerts get current stored alerts

Jump to

Keyboard shortcuts

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