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
31 | 31 | mtx sync.RWMutex |
32 | 32 | sem chan struct{} |
33 | 33 | namespace string |
34 | svc cloudwatchiface.CloudWatchAPI | |
34 | svc cloudwatchiface.ClientAPI | |
35 | 35 | counters *lv.Space |
36 | 36 | logger log.Logger |
37 | 37 | numConcurrentRequests int |
65 | 65 | // Namespace is applied to all created metrics and maps to the CloudWatch namespace. |
66 | 66 | // Callers must ensure that regular calls to Send are performed, either |
67 | 67 | // 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 { | |
69 | 69 | cw := &CloudWatch{ |
70 | 70 | namespace: namespace, |
71 | 71 | svc: svc, |