Chore: Convert CloudWatch metrics to data frames (#27449)
* CloudWatch: Convert metrics results to data frames Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: kay delaney <kay@grafana.com>
This commit is contained in:
co-authored by
kay delaney
parent
810c327e31
commit
0a2ef086b3
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/cloudwatch"
|
||||
"github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@@ -14,6 +15,7 @@ import (
|
||||
var counter = 1
|
||||
|
||||
type cloudWatchFakeClient struct {
|
||||
cloudwatchiface.CloudWatchAPI
|
||||
}
|
||||
|
||||
func (client *cloudWatchFakeClient) GetMetricDataWithContext(ctx aws.Context, input *cloudwatch.GetMetricDataInput, opts ...request.Option) (*cloudwatch.GetMetricDataOutput, error) {
|
||||
|
||||
Reference in New Issue
Block a user