mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Add step parameter to Loki query (#69558)
This commit is contained in:
parent
3227d0b5fd
commit
49c940de23
@ -26,5 +26,6 @@ title: LokiDataQuery kind
|
|||||||
| `queryType` | string | No | | Specify the query flavor<br/>TODO make this required and give it a default |
|
| `queryType` | string | No | | Specify the query flavor<br/>TODO make this required and give it a default |
|
||||||
| `range` | boolean | No | | @deprecated, now use queryType. |
|
| `range` | boolean | No | | @deprecated, now use queryType. |
|
||||||
| `resolution` | integer | No | | Used to scale the interval value. |
|
| `resolution` | integer | No | | Used to scale the interval value. |
|
||||||
|
| `step` | string | No | | Used to set step value for range queries. |
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,4 +59,8 @@ export interface LokiDataQuery extends common.DataQuery {
|
|||||||
* Used to scale the interval value.
|
* Used to scale the interval value.
|
||||||
*/
|
*/
|
||||||
resolution?: number;
|
resolution?: number;
|
||||||
|
/**
|
||||||
|
* Used to set step value for range queries.
|
||||||
|
*/
|
||||||
|
step?: string;
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,9 @@ type LokiDataQuery struct {
|
|||||||
|
|
||||||
// Used to scale the interval value.
|
// Used to scale the interval value.
|
||||||
Resolution *int64 `json:"resolution,omitempty"`
|
Resolution *int64 `json:"resolution,omitempty"`
|
||||||
|
|
||||||
|
// Used to set step value for range queries.
|
||||||
|
Step *string `json:"step,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LokiQueryDirection defines model for LokiQueryDirection.
|
// LokiQueryDirection defines model for LokiQueryDirection.
|
||||||
|
@ -44,6 +44,8 @@ composableKinds: DataQuery: {
|
|||||||
range?: bool
|
range?: bool
|
||||||
// @deprecated, now use queryType.
|
// @deprecated, now use queryType.
|
||||||
instant?: bool
|
instant?: bool
|
||||||
|
// Used to set step value for range queries.
|
||||||
|
step?: string
|
||||||
|
|
||||||
#QueryEditorMode: "code" | "builder" @cuetsy(kind="enum")
|
#QueryEditorMode: "code" | "builder" @cuetsy(kind="enum")
|
||||||
|
|
||||||
|
@ -60,4 +60,8 @@ export interface Loki extends common.DataQuery {
|
|||||||
* Used to scale the interval value.
|
* Used to scale the interval value.
|
||||||
*/
|
*/
|
||||||
resolution?: number;
|
resolution?: number;
|
||||||
|
/**
|
||||||
|
* Used to set step value for range queries.
|
||||||
|
*/
|
||||||
|
step?: string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user