Codebase list golang-github-go-kit-kit / 7faed7f
Update cloudwatch2 to latest upstream API. (#878) A name change in the upstream AWS SDK caused breakage in cloudwatch2 metrics. This commits updates our usage of the API to match the new upstream naming. Nathan Smith authored 4 years ago Peter Bourgon committed 4 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3131 mtx sync.RWMutex
3232 sem chan struct{}
3333 namespace string
34 svc cloudwatchiface.CloudWatchAPI
34 svc cloudwatchiface.ClientAPI
3535 counters *lv.Space
3636 logger log.Logger
3737 numConcurrentRequests int
6565 // Namespace is applied to all created metrics and maps to the CloudWatch namespace.
6666 // Callers must ensure that regular calls to Send are performed, either
6767 // manually or with one of the helper methods.
68 func New(namespace string, svc cloudwatchiface.CloudWatchAPI, options ...Option) *CloudWatch {
68 func New(namespace string, svc cloudwatchiface.ClientAPI, options ...Option) *CloudWatch {
6969 cw := &CloudWatch{
7070 namespace: namespace,
7171 svc: svc,
7272 }
7373
7474 type mockCloudWatch struct {
75 cloudwatchiface.CloudWatchAPI
75 cloudwatchiface.ClientAPI
7676 latestName string
7777 latestData []cloudwatch.MetricDatum
7878 }