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 <mahendra.paipuri@gmail.com>
* Update api/prometheus/v1/api.go
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Mahendra Paipuri <44365948+mahendrapaipuri@users.noreply.github.com>
* refactor: Address PR comments and feedback
* Use a custom `StatsValue` type to provide as query parameter for `stats` option.
Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
---------
Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
Signed-off-by: Mahendra Paipuri <44365948+mahendrapaipuri@users.noreply.github.com>
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
// 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