mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -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>
16 lines
667 B
Go
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.",
|
|
}
|