Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions metrics/cloudwatch2/cloudwatch2.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type CloudWatch struct {
mtx sync.RWMutex
sem chan struct{}
namespace string
svc cloudwatchiface.CloudWatchAPI
svc cloudwatchiface.ClientAPI
counters *lv.Space
logger log.Logger
numConcurrentRequests int
Expand Down Expand Up @@ -66,7 +66,7 @@ func WithConcurrentRequests(n int) Option {
// Namespace is applied to all created metrics and maps to the CloudWatch namespace.
// Callers must ensure that regular calls to Send are performed, either
// manually or with one of the helper methods.
func New(namespace string, svc cloudwatchiface.CloudWatchAPI, options ...Option) *CloudWatch {
func New(namespace string, svc cloudwatchiface.ClientAPI, options ...Option) *CloudWatch {
cw := &CloudWatch{
namespace: namespace,
svc: svc,
Expand Down
2 changes: 1 addition & 1 deletion metrics/cloudwatch2/cloudwatch2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestStats(t *testing.T) {
}

type mockCloudWatch struct {
cloudwatchiface.CloudWatchAPI
cloudwatchiface.ClientAPI
latestName string
latestData []cloudwatch.MetricDatum
}
Expand Down