awsspec

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 5 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

func (CWSpec) AlarmHasTag added in v0.17.0

func (c CWSpec) AlarmHasTag(alarmARN string, tag s3Spec.TagGetter) (res bool, err error)

AlarmHasTag checks whether the indicated alarm has the indicated tags

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