aws

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalRegion

func GetLocalRegion() string

GetLocalRegion gets the region ID from the instance metadata.

Types

type Client

type Client interface {
	// Query sends a list of queries to Cloudwatch for metric results.
	Query(queries []config.MetricDataQuery) ([]cloudwatch.MetricDataResult, error)

	// Query sends a CloudWatch GetMetricDataInput to CloudWatch API for metric results.
	QueryCloudWatch(query cloudwatch.GetMetricDataInput) ([]cloudwatch.MetricDataResult, error)
}

Client represents a client for Amazon CloudWatch.

func NewCloudWatchClient

func NewCloudWatchClient() Client

NewCloudWatchClient creates a new CloudWatch client.

Jump to

Keyboard shortcuts

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