pub struct LabelValuesQueryBuilder { /* private fields */ }
Expand description
Provides methods to build a query to retrieve label values for a specific label from Prometheus.
Implementations§
source§impl LabelValuesQueryBuilder
impl LabelValuesQueryBuilder
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 label values 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 LabelValuesQueryBuilder
impl Clone for LabelValuesQueryBuilder
source§fn clone(&self) -> LabelValuesQueryBuilder
fn clone(&self) -> LabelValuesQueryBuilder
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 LabelValuesQueryBuilder
impl !RefUnwindSafe for LabelValuesQueryBuilder
impl Send for LabelValuesQueryBuilder
impl Sync for LabelValuesQueryBuilder
impl Unpin for LabelValuesQueryBuilder
impl !UnwindSafe for LabelValuesQueryBuilder
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