Document WithTimeout options for Query/QueryRange (#1037)
Signed-off-by: Joseph Woodward <joseph.woodward@xeuse.com>
This commit is contained in:
parent
4dcf02ec7b
commit
efe8e6fac8
|
@ -824,6 +824,8 @@ type apiOptions struct {
|
|||
|
||||
type Option func(c *apiOptions)
|
||||
|
||||
// WithTimeout can be used to provide an optional query evaluation timeout for Query and QueryRange.
|
||||
// https://prometheus.io/docs/prometheus/latest/querying/api/#instant-queries
|
||||
func WithTimeout(timeout time.Duration) Option {
|
||||
return func(o *apiOptions) {
|
||||
o.timeout = timeout
|
||||
|
|
Loading…
Reference in New Issue