CloudWatch: move QueryData input parsing types to separate package (#57165)

* CloudWatch: move parse request types separate package

* Move metric query constants, unexport metricDataQuery json decoding type

* Unexport isSearchExpression
This commit is contained in:
Shirley
2022-10-20 11:21:13 +02:00
committed by GitHub
parent ee6ff18122
commit cadc6088db
15 changed files with 280 additions and 267 deletions
+12
View File
@@ -0,0 +1,12 @@
package models
import "fmt"
type QueryError struct {
Err error
RefID string
}
func (e *QueryError) Error() string {
return fmt.Sprintf("error parsing query %q, %s", e.RefID, e.Err)
}