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
(timeout time.Duration)
| 1096 | // WithTimeout can be used to provide an optional query evaluation timeout for Query and QueryRange. |
| 1097 | // https://prometheus.io/docs/prometheus/latest/querying/api/#instant-queries |
| 1098 | func WithTimeout(timeout time.Duration) Option { |
| 1099 | return func(o *apiOptions) { |
| 1100 | o.timeout = timeout |
| 1101 | } |
| 1102 | } |
| 1103 | |
| 1104 | // WithLookbackDelta can be used to provide an optional query lookback delta for Query and QueryRange. |
| 1105 | // This URL variable is not documented on Prometheus HTTP API. |
no outgoing calls