mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 21:53:00 +08:00
Loki: Add X-Query-Tags header for logs sample and data sample (#62333)
This commit is contained in:
@ -57,15 +57,15 @@ type datasourceInfo struct {
|
||||
}
|
||||
|
||||
type QueryJSONModel struct {
|
||||
QueryType string `json:"queryType"`
|
||||
Expr string `json:"expr"`
|
||||
Direction string `json:"direction"`
|
||||
LegendFormat string `json:"legendFormat"`
|
||||
Interval string `json:"interval"`
|
||||
IntervalMS int `json:"intervalMS"`
|
||||
Resolution int64 `json:"resolution"`
|
||||
MaxLines int `json:"maxLines"`
|
||||
VolumeQuery bool `json:"volumeQuery"`
|
||||
QueryType string `json:"queryType"`
|
||||
Expr string `json:"expr"`
|
||||
Direction string `json:"direction"`
|
||||
LegendFormat string `json:"legendFormat"`
|
||||
Interval string `json:"interval"`
|
||||
IntervalMS int `json:"intervalMS"`
|
||||
Resolution int64 `json:"resolution"`
|
||||
MaxLines int `json:"maxLines"`
|
||||
SupportingQueryType string `json:"supportingQueryType"`
|
||||
}
|
||||
|
||||
func parseQueryModel(raw json.RawMessage) (*QueryJSONModel, error) {
|
||||
|
Reference in New Issue
Block a user