Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 MetricsRequest ¶ added in v0.4.0
type MetricsRequest map[string]interface{}
func (*MetricsRequest) String ¶ added in v0.5.1
func (m *MetricsRequest) String() string
Click to show internal directories.
Click to hide internal directories.