Loki: Add step parameter to Loki query (#69558)

This commit is contained in:
Ivana Huckova
2023-06-06 13:20:27 +02:00
committed by GitHub
parent 3227d0b5fd
commit 49c940de23
5 changed files with 14 additions and 0 deletions
@@ -26,5 +26,6 @@ title: LokiDataQuery kind
| `queryType` | string | No | | Specify the query flavor<br/>TODO make this required and give it a default |
| `range` | boolean | No | | @deprecated, now use queryType. |
| `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.
*/
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.
Resolution *int64 `json:"resolution,omitempty"`
// Used to set step value for range queries.
Step *string `json:"step,omitempty"`
}
// LokiQueryDirection defines model for LokiQueryDirection.
@@ -44,6 +44,8 @@ composableKinds: DataQuery: {
range?: bool
// @deprecated, now use queryType.
instant?: bool
// Used to set step value for range queries.
step?: string
#QueryEditorMode: "code" | "builder" @cuetsy(kind="enum")
@@ -60,4 +60,8 @@ export interface Loki extends common.DataQuery {
* Used to scale the interval value.
*/
resolution?: number;
/**
* Used to set step value for range queries.
*/
step?: string;
}