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, req MetricsRequest) ([]byte, error)

        GetMetricWidget gets a metric widget image for an instance id

        type Metric

        type Metric []string

        type MetricsRequest

        type MetricsRequest map[string]interface{}

        func (*MetricsRequest) String

        func (m *MetricsRequest) String() string