awsspec

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CWSpec

type CWSpec struct {
	Session *session.Session
}

CWSpec contains the AWS session

func New

func New(s *session.Session) CWSpec

New returns a new CWSpec

func (CWSpec) AlarmActionsEnabled added in v0.5.0

func (c CWSpec) AlarmActionsEnabled(alarmName string) (res bool, err error)

AlarmActionsEnabled checks that the specified metric alarm's actions are enabled

func (CWSpec) AlarmBelongsToMetric added in v0.5.0

func (c CWSpec) AlarmBelongsToMetric(alarmName string, metric Metric) (res bool, err error)

AlarmBelongsToMetric checks that the specified metric alarm belongs to the indicated metric

func (CWSpec) AlarmHasAction added in v0.5.0

func (c CWSpec) AlarmHasAction(alarmName, action string) (res bool, err error)

AlarmHasAction checks that the specified metric alarm has the indicated actions

func (CWSpec) AlarmHasState

func (c CWSpec) AlarmHasState(alarmName, state string) (res bool, err error)

AlarmHasState checks whether the indicated metric alarm is in the indicated state

type Metric added in v0.5.0

type Metric struct {
	Name      string
	Namespace string
}

Metric represents a CloudWatch metric

Jump to

Keyboard shortcuts

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