Skip to content

Commit

Permalink
Add CWService interface
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Dec 13, 2024
1 parent 7af3f01 commit a34cc2b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions aws/cwatch/base.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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
}

0 comments on commit a34cc2b

Please sign in to comment.