grafana/pkg/tsdb/cloudwatch/models/query_error.go
Shirley cadc6088db
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
2022-10-20 11:21:13 +02:00

13 lines
191 B
Go

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)
}