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 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 names.
This can be called multiple times to merge the series selectors with
those that have been set before.
This corresponds to setting match[] from Getting label names 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 names.
This can be called multiple times to merge the series selectors with
those that have been set before.
This corresponds to setting match[] from Getting label names 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.