loki: rename ResponseModel to QueryModel (#42794)

This commit is contained in:
Gábor Farkas 2021-12-07 07:57:52 +01:00 committed by GitHub
parent 2af5ad4764
commit 6686f8c345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ type datasourceInfo struct {
TimeInterval string `json:"timeInterval"`
}
type ResponseModel struct {
type QueryModel struct {
Expr string `json:"expr"`
LegendFormat string `json:"legendFormat"`
Interval string `json:"interval"`

View File

@ -40,7 +40,7 @@ func interpolateVariables(expr string, interval time.Duration, timeRange time.Du
func parseQuery(dsInfo *datasourceInfo, queryContext *backend.QueryDataRequest) ([]*lokiQuery, error) {
qs := []*lokiQuery{}
for _, query := range queryContext.Queries {
model := &ResponseModel{}
model := &QueryModel{}
err := json.Unmarshal(query.JSON, model)
if err != nil {
return nil, err