pub struct HttpPrometheusRepository { /* private fields */ }Implementations§
Source§impl HttpPrometheusRepository
impl HttpPrometheusRepository
pub fn new(config: PrometheusConfig) -> Result<Self, PrometheusError>
pub fn from_env() -> Result<Self, PrometheusError>
Trait Implementations§
Source§impl PrometheusRepository for HttpPrometheusRepository
impl PrometheusRepository for HttpPrometheusRepository
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,
Auto Trait Implementations§
impl !Freeze for HttpPrometheusRepository
impl !RefUnwindSafe for HttpPrometheusRepository
impl Send for HttpPrometheusRepository
impl Sync for HttpPrometheusRepository
impl Unpin for HttpPrometheusRepository
impl !UnwindSafe for HttpPrometheusRepository
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