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 match_many<T>(self, selectors: T) -> Self
pub fn match_many<T>(self, selectors: T) -> Self
Add series selectors to filter the time series from which Prometheus
reads label values.
This can be called multiple times to merge the series selectors with
those that have been set before.
This corresponds to setting match[] from Querying label values repeatedly.
Sourcepub fn match_one(self, selector: impl Display) -> Self
pub fn match_one(self, selector: impl Display) -> Self
Add a series selector to filter the time series from which Prometheus
reads label values.
This can be called multiple times to merge the series selectors with
those that have been set before.
This corresponds to setting match[] from Querying label values once.
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.
Sourcepub fn limit(self, limit: i64) -> Self
pub fn limit(self, limit: i64) -> Self
Limit the maximum number of returned series. Calling this repeatedly will replace the current limit.