cloudwatch

package
v0.2.0-pre04 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: AGPL-3.0 Imports: 12 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
}

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

func NewSession

func NewSession(account common.Account) Cloudwatch

NewSession creates a new cloudwatch session

func (*Cloudwatch) GetMetricWidget

func (c *Cloudwatch) GetMetricWidget(ctx context.Context, metrics []Metric, period int64, start, end string) ([]byte, error)

GetMetricWidget gets a metric widget image for an instance id

type Metric

type Metric []string

Jump to

Keyboard shortcuts

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