cloudwatch

package
v1.22.1 Latest Latest
Warning

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

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

Documentation

Overview

Package cloudwatch provides a client to make API requests to Amazon CloudWatch Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmStatus

type AlarmStatus struct {
	Arn          string    `json:"arn"`
	Name         string    `json:"name"`
	Condition    string    `json:"condition"`
	Status       string    `json:"status"`
	Type         string    `json:"type"`
	UpdatedTimes time.Time `json:"updatedTimes"`
}

AlarmStatus contains CloudWatch alarm status.

type CloudWatch

type CloudWatch struct {
	// contains filtered or unexported fields
}

CloudWatch wraps an Amazon CloudWatch client.

func New

func New(s *session.Session) *CloudWatch

New returns a CloudWatch struct configured against the input session.

func (*CloudWatch) AlarmStatus added in v0.4.0

func (cw *CloudWatch) AlarmStatus(alarms []string) ([]AlarmStatus, error)

AlarmStatus returns the status of each given alarm name.

func (*CloudWatch) AlarmsWithTags added in v0.4.0

func (cw *CloudWatch) AlarmsWithTags(tags map[string]string) ([]AlarmStatus, error)

AlarmsWithTags returns all the CloudWatch alarms that have the resource tags.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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