cloudwatch

package
v0.12.11-rc6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudWatch

type CloudWatch struct {
	Connect func() (CloudWatchInternal, error)
	// contains filtered or unexported fields
}

func (*CloudWatch) GetMetricStatistics

func (this *CloudWatch) GetMetricStatistics(namespace, metricName string, period int64, statistics []string, dimensions []*cloudwatch.Dimension, startTime, endTime time.Time) ([]cloudwatch.Datapoint, error)

func (*CloudWatch) ListMetrics

func (this *CloudWatch) ListMetrics(namespace, metricName string, dimensionFilters []*cloudwatch.DimensionFilter) ([]cloudwatch.Metric, error)

type CloudWatchInternal

type CloudWatchInternal interface {
	GetMetricStatistics(input *cloudwatch.GetMetricStatisticsInput) (output *cloudwatch.GetMetricStatisticsOutput, err error)
	ListMetrics(input *cloudwatch.ListMetricsInput) (output *cloudwatch.ListMetricsOutput, err error)
}

func Connect

func Connect(credProvider provider.CredProvider, region string) (CloudWatchInternal, error)

type Provider

type Provider interface {
	GetMetricStatistics(namespace, metricName string, period int64, statistics []string, dimensions []*cloudwatch.Dimension, startTime, endTime time.Time) ([]cloudwatch.Datapoint, error)
	ListMetrics(namespace, metricName string, dimensionFilters []*cloudwatch.DimensionFilter) ([]cloudwatch.Metric, error)
}

func NewCloudWatch

func NewCloudWatch(credProvider provider.CredProvider, region string) (Provider, error)

Jump to

Keyboard shortcuts

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