mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
fde9a5d112
* cleanup cloudwatch.go * streamline interface naming * use utility func * rename test utils file * move util function to where they are used * move dtos to models * split integration tests from the rest * Update pkg/tsdb/cloudwatch/cloudwatch.go Co-authored-by: Isabella Siu <Isabella.siu@grafana.com> * refactor error codes aggregation * move error messages to models Co-authored-by: Isabella Siu <Isabella.siu@grafana.com>
150 lines
3.4 KiB
JSON
150 lines
3.4 KiB
JSON
[
|
|
{
|
|
"Messages": [],
|
|
"MetricDataResults": [
|
|
{
|
|
"Id": "a",
|
|
"Label": "label1",
|
|
"Messages": null,
|
|
"StatusCode": "Complete",
|
|
"Timestamps": [
|
|
"2021-01-15T19:44:00Z",
|
|
"2021-01-15T19:59:00Z",
|
|
"2021-01-15T20:14:00Z",
|
|
"2021-01-15T20:29:00Z",
|
|
"2021-01-15T20:44:00Z"
|
|
],
|
|
"Values": [
|
|
0.1333395078879982,
|
|
0.244268469636633,
|
|
0.15574387947267768,
|
|
0.14447563659125626,
|
|
0.15519743138527173
|
|
]
|
|
},
|
|
{
|
|
"Id": "a",
|
|
"Label": "label2",
|
|
"Messages": null,
|
|
"StatusCode": "Complete",
|
|
"Timestamps": [
|
|
"2021-01-15T19:44:00Z"
|
|
],
|
|
"Values": [
|
|
0.1333395078879982
|
|
]
|
|
},
|
|
{
|
|
"Id": "b",
|
|
"Label": "label2",
|
|
"Messages": null,
|
|
"StatusCode": "Complete",
|
|
"Timestamps": [
|
|
"2021-01-15T19:44:00Z"
|
|
],
|
|
"Values": [
|
|
0.1333395078879982
|
|
]
|
|
}
|
|
],
|
|
"NextToken": null
|
|
},
|
|
{
|
|
"Messages": [
|
|
{ "Code": "", "Value": null },
|
|
{ "Code": "MaxMetricsExceeded", "Value": null },
|
|
{ "Code": "MaxQueryTimeRangeExceeded", "Value": null },
|
|
{ "Code": "MaxQueryResultsExceeded", "Value": null },
|
|
{ "Code": "MaxMatchingResultsExceeded", "Value": null }
|
|
],
|
|
"MetricDataResults": [
|
|
{
|
|
"Id": "a",
|
|
"Label": "label1",
|
|
"Messages": null,
|
|
"StatusCode": "Complete",
|
|
"Timestamps": [
|
|
"2021-01-15T19:44:00Z",
|
|
"2021-01-15T19:59:00Z",
|
|
"2021-01-15T20:14:00Z",
|
|
"2021-01-15T20:29:00Z",
|
|
"2021-01-15T20:44:00Z"
|
|
],
|
|
"Values": [
|
|
0.1333395078879982,
|
|
0.244268469636633,
|
|
0.15574387947267768,
|
|
0.14447563659125626,
|
|
0.15519743138527173
|
|
]
|
|
},
|
|
{
|
|
"Id": "a",
|
|
"Label": "label2",
|
|
"Messages": null,
|
|
"StatusCode": "Complete",
|
|
"Timestamps": [
|
|
"2021-01-15T19:44:00Z"
|
|
],
|
|
"Values": [
|
|
0.1333395078879982
|
|
]
|
|
},
|
|
{
|
|
"Id": "b",
|
|
"Label": "label2",
|
|
"Messages": null,
|
|
"StatusCode": "Complete",
|
|
"Timestamps": [
|
|
"2021-01-15T19:44:00Z"
|
|
],
|
|
"Values": [
|
|
0.1333395078879982
|
|
]
|
|
}
|
|
],
|
|
"NextToken": null
|
|
},
|
|
{
|
|
"Messages": null,
|
|
"MetricDataResults": [
|
|
{
|
|
"Id": "a",
|
|
"Label": "label1",
|
|
"Messages": null,
|
|
"StatusCode": "Complete",
|
|
"Timestamps": [
|
|
"2021-01-15T19:44:00Z",
|
|
"2021-01-15T19:59:00Z",
|
|
"2021-01-15T20:14:00Z",
|
|
"2021-01-15T20:29:00Z",
|
|
"2021-01-15T20:44:00Z"
|
|
],
|
|
"Values": [
|
|
0.1333395078879982,
|
|
0.244268469636633,
|
|
0.15574387947267768,
|
|
0.14447563659125626,
|
|
0.15519743138527173
|
|
]
|
|
},
|
|
{
|
|
"Id": "b",
|
|
"Label": "label2",
|
|
"Messages": [{
|
|
"Code": "ArithmeticError",
|
|
"Value": "One or more data-points have been dropped due to non-numeric values (NaN, -Infinite, +Infinite)"
|
|
}],
|
|
"StatusCode": "Partial",
|
|
"Timestamps": [
|
|
"2021-01-15T19:44:00Z"
|
|
],
|
|
"Values": [
|
|
0.1333395078879982
|
|
]
|
|
}
|
|
],
|
|
"NextToken": null
|
|
}
|
|
]
|