cloudwatch

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type Cloudwatch

type Cloudwatch struct {
	Service cloudwatchiface.CloudWatchAPI
	// contains filtered or unexported fields
}

Cloudwatch is a wrapper around the aws cloudwatch service with some default config info

func New added in v0.15.0

func New(opts ...CloudwatchOption) *Cloudwatch

func (*Cloudwatch) GetMetricWidget

func (c *Cloudwatch) GetMetricWidget(ctx context.Context, req MetricsRequest) ([]byte, error)

GetMetricWidget gets a metric widget image for an instance id

type CloudwatchOption added in v0.15.0

type CloudwatchOption func(*Cloudwatch)

func WithCredentials added in v0.15.0

func WithCredentials(key, secret, token, region string) CloudwatchOption

func WithSession added in v0.15.0

func WithSession(sess *session.Session) CloudwatchOption

type Metric

type Metric []string

type MetricsRequest added in v0.4.0

type MetricsRequest map[string]interface{}

func (*MetricsRequest) String added in v0.5.1

func (m *MetricsRequest) String() string

Jump to

Keyboard shortcuts

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