Trait PrometheusRepository
Source pub trait PrometheusRepository: Send + Sync {
// Required methods
fn query<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
time: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<PrometheusQueryResult, PrometheusError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn query_range<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
query: &'life1 str,
start: &'life2 str,
end: &'life3 str,
step: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<PrometheusQueryResult, PrometheusError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn list_metrics<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, PrometheusError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
metric: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<MetricMetadata>, PrometheusError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_series<'life0, 'life1, 'async_trait>(
&'life0 self,
match_strings: Vec<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<HashMap<String, String>>, PrometheusError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_label_values<'life0, 'life1, 'async_trait>(
&'life0 self,
label_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, PrometheusError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}