pub struct LabelNamesQueryBuilder { /* private fields */ }
Expand description
Provides methods to build a query to retrieve label names from Prometheus.
Implementations§
source§impl LabelNamesQueryBuilder
impl LabelNamesQueryBuilder
sourcepub fn selectors<'a, T>(self, selectors: T) -> Self
pub fn selectors<'a, T>(self, selectors: T) -> Self
Set series selectors to filter the time series from wich Prometheus reads labels from. This can be called multiple times to merge the series selectors with those that have been set before.
sourcepub fn start(self, start: i64) -> Self
pub fn start(self, start: i64) -> Self
Limit the amount of metadata returned by setting a start time (UNIX timestamp in seconds). Calling this repeatedly will replace the current setting.
sourcepub fn end(self, end: i64) -> Self
pub fn end(self, end: i64) -> Self
Limit the amount of metadata returned by setting an end time (UNIX timestamp in seconds). Calling this repeatedly will replace the current setting.
Trait Implementations§
source§impl Clone for LabelNamesQueryBuilder
impl Clone for LabelNamesQueryBuilder
source§fn clone(&self) -> LabelNamesQueryBuilder
fn clone(&self) -> LabelNamesQueryBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LabelNamesQueryBuilder
impl !RefUnwindSafe for LabelNamesQueryBuilder
impl Send for LabelNamesQueryBuilder
impl Sync for LabelNamesQueryBuilder
impl Unpin for LabelNamesQueryBuilder
impl !UnwindSafe for LabelNamesQueryBuilder
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