diff --git a/aws/cwatch/base.go b/aws/cwatch/base.go deleted file mode 100644 index ff661a0..0000000 --- a/aws/cwatch/base.go +++ /dev/null @@ -1,15 +0,0 @@ -package cwatch - -import ( - "sync" - - "github.com/aws/aws-sdk-go-v2/service/cloudwatch" - "github.com/aws/aws-sdk-go-v2/service/cloudwatch/types" -) - -type CWService interface { - Queue(d types.MetricDatum) - StartQueue(wg *sync.WaitGroup) - StopQueue() - Prepare(data []types.MetricDatum) *cloudwatch.PutMetricDataInput -} diff --git a/aws/cwatch/service.go b/aws/cwatch/service.go index 613104b..44b1077 100644 --- a/aws/cwatch/service.go +++ b/aws/cwatch/service.go @@ -72,4 +72,10 @@ func (s *Service) processBatch(batch []types.MetricDatum) { } } +type CWService interface { + Queue(d types.MetricDatum) + StartQueue(wg *sync.WaitGroup) + StopQueue() +} + var _ CWService = (*Service)(nil)