cloudwatch

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg iaws.Config) *cloudwatch.CloudWatch

New returns a configured CloudWatch client.

Types

type API

type API struct {
	Client cloudwatchiface.CloudWatchAPI
}

API wraps the CloudWatch API interface.

func (*API) IsEnabled

func (a *API) IsEnabled() bool

IsEnabled returns true if the client is enabled and ready for use.

func (*API) Setup

func (a *API) Setup(cfg iaws.Config)

Setup creates a new CloudWatch client.

func (*API) UpdateKinesisAlarmState added in v1.1.0

func (a *API) UpdateKinesisAlarmState(ctx aws.Context, name, reason string) error

func (*API) UpdateKinesisDownscaleAlarm

func (a *API) UpdateKinesisDownscaleAlarm(ctx aws.Context, name, stream, topic string, shards int64) error

UpdateKinesisDownscaleAlarm updates CloudWatch alarms that manage the scale down tracking for Kinesis streams.

func (*API) UpdateKinesisUpscaleAlarm

func (a *API) UpdateKinesisUpscaleAlarm(ctx aws.Context, name, stream, topic string, shards int64) error

UpdateKinesisUpscaleAlarm updates CloudWatch alarms that manage the scale up tracking for Kinesis streams.

Jump to

Keyboard shortcuts

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