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)
Click to show internal directories.
Click to hide internal directories.