pub struct InstantQuery { /* private fields */ }
Expand description
An instant query to send to Prometheus
Implementations§
Source§impl InstantQuery
impl InstantQuery
Sourcepub fn with_epoch(self, time: u64) -> Self
pub fn with_epoch(self, time: u64) -> Self
Builder method to set the query timeout
Sourcepub fn with_timeout(self, timeout: u64) -> Self
pub fn with_timeout(self, timeout: u64) -> Self
Builder method to set the query timeout
Sourcepub fn as_query_params(&self, base: String) -> String
pub fn as_query_params(&self, base: String) -> String
Transforms the typed query into HTTP GET query params, it contains a pre-built base
that
may use an HTTP path prefix if configured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstantQuery
impl RefUnwindSafe for InstantQuery
impl Send for InstantQuery
impl Sync for InstantQuery
impl Unpin for InstantQuery
impl UnwindSafe for InstantQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more