alert

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertsContainInstanceArn

func AlertsContainInstanceArn(alerts []*Alert, instanceArn string) bool

Types

type Alert

type Alert struct {
	Type                 Type
	Status               Status
	Trigger              Trigger
	EventCount           int64
	ClusterArn           string
	ContainerInstanceArn string
	AlertDate            time.Time
	LastActionDate       time.Time
}

func ConsolidateAlerts

func ConsolidateAlerts(alerts []*Alert) []*Alert

func DeleteAlertFromArray

func DeleteAlertFromArray(alerts []*Alert, i int) []*Alert

func NewAlert

func NewAlert(alertType Type, alertTrigger Trigger, clusterArn string, containerInstanceArn string) *Alert

func (Alert) String

func (a Alert) String() string

type Status

type Status int
const (
	Created Status = iota
	Pending
	InProgress
	Completed
)

type Trigger

type Trigger int
const (
	Resources Trigger = iota
	Schedule
	Service
	Instance
)

type Type

type Type int
const (
	ScaleUp Type = iota
	ScaleDown
	Retire
)

Jump to

Keyboard shortcuts

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