grafana/pkg/tsdb/cloudwatch/models/gmd_errors.go
Erik Sundell fde9a5d112
Cloudwatch: Backend cleanup (#59663)
* 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>
2022-12-02 10:21:46 +01:00

16 lines
667 B
Go

package models
const (
MaxMetricsExceeded = "MaxMetricsExceeded"
MaxQueryTimeRangeExceeded = "MaxQueryTimeRangeExceeded"
MaxQueryResultsExceeded = "MaxQueryResultsExceeded"
MaxMatchingResultsExceeded = "MaxMatchingResultsExceeded"
)
var ErrorMessages = map[string]string{
MaxMetricsExceeded: "Maximum number of allowed metrics exceeded. Your search may have been limited",
MaxQueryTimeRangeExceeded: "Max time window exceeded for query",
MaxQueryResultsExceeded: "Only the first 500 time series can be returned by a query.",
MaxMatchingResultsExceeded: "The query matched more than 10.000 metrics, results might not be accurate.",
}