You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for undocumented query options for API (#1743)
* refactor: Add support for undocumented query options for API
* `WithLookbackDelta` and `WithPerStepStats` options have been added to API client.
Signed-off-by: Mahendra Paipuri <[email protected]>
* Update api/prometheus/v1/api.go
Co-authored-by: Bartlomiej Plotka <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
* refactor: Address PR comments and feedback
* Use a custom `StatsValue` type to provide as query parameter for `stats` option.
Signed-off-by: Mahendra Paipuri <[email protected]>
---------
Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
Co-authored-by: Bartlomiej Plotka <[email protected]>
// WithLimit provides an optional maximum number of returned entries for APIs that support limit parameter
1095
1123
// e.g. https://prometheus.io/docs/prometheus/latest/querying/api/#instant-querie:~:text=%3A%20End%20timestamp.-,limit%3D%3Cnumber%3E,-%3A%20Maximum%20number%20of
0 commit comments