Loki: support live streaming (#42804)

This commit is contained in:
Ryan McKinley
2022-03-01 14:46:52 -08:00
committed by GitHub
parent 09cde9a700
commit 796bc27f75
12 changed files with 419 additions and 11 deletions
+1 -3
View File
@@ -1,7 +1,6 @@
package loki
import (
"encoding/json"
"fmt"
"math"
"strconv"
@@ -71,8 +70,7 @@ func parseQueryType(jsonValue string) (QueryType, error) {
func parseQuery(queryContext *backend.QueryDataRequest) ([]*lokiQuery, error) {
qs := []*lokiQuery{}
for _, query := range queryContext.Queries {
model := &QueryJSONModel{}
err := json.Unmarshal(query.JSON, model)
model, err := parseQueryModel(query.JSON)
if err != nil {
return nil, err
}