|
|
|
@ -67,11 +67,11 @@ type fakeCWClient struct { |
|
|
|
|
MetricsPerPage int |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (c fakeCWClient) GetMetricDataWithContext(aws.Context, *cloudwatch.GetMetricDataInput, ...request.Option) (*cloudwatch.GetMetricDataOutput, error) { |
|
|
|
|
func (c *fakeCWClient) GetMetricDataWithContext(aws.Context, *cloudwatch.GetMetricDataInput, ...request.Option) (*cloudwatch.GetMetricDataOutput, error) { |
|
|
|
|
return &c.GetMetricDataOutput, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (c fakeCWClient) ListMetricsPages(input *cloudwatch.ListMetricsInput, fn func(*cloudwatch.ListMetricsOutput, bool) bool) error { |
|
|
|
|
func (c *fakeCWClient) ListMetricsPages(input *cloudwatch.ListMetricsInput, fn func(*cloudwatch.ListMetricsOutput, bool) bool) error { |
|
|
|
|
if c.MetricsPerPage == 0 { |
|
|
|
|
c.MetricsPerPage = 1000 |
|
|
|
|
} |
|
|
|
|