[][src]Struct prometheus_query::PromClient

pub struct PromClient<T: Connect + 'static> { /* fields omitted */ }

Methods

impl PromClient<HttpsConnector<HttpConnector>>[src]

pub fn new_https(
    host: &str,
    query_timeout: Option<Duration>
) -> Result<PromClient<HttpsConnector<HttpConnector>>>
[src]

impl<T: Connect + 'static> PromClient<T>[src]

pub async fn instant_query<'_>(
    &'_ mut self,
    query: String,
    at: Option<DateTime<Utc>>
) -> Result<ApiResult>
[src]

pub async fn range_query<'_>(
    &'_ mut self,
    query: String,
    start: DateTime<Utc>,
    end: DateTime<Utc>,
    step: Step
) -> Result<ApiResult>
[src]

pub async fn series<'_>(
    &'_ mut self,
    selectors: Vec<String>,
    start: DateTime<Utc>,
    end: DateTime<Utc>
) -> Result<ApiResult>
[src]

pub async fn label_names<'_>(&'_ mut self) -> Result<ApiResult>[src]

pub async fn label_values<'_>(
    &'_ mut self,
    label_name: String
) -> Result<ApiResult>
[src]

pub async fn targets<'_>(&'_ mut self) -> Result<ApiResult>[src]

pub async fn alert_managers<'_>(&'_ mut self) -> Result<ApiResult>[src]

pub async fn config<'_>(&'_ mut self) -> Result<ApiResult>[src]

pub async fn flags<'_>(&'_ mut self) -> Result<ApiResult>[src]

pub async fn delete_series<'_>(
    &'_ mut self,
    series: Vec<String>,
    start: Option<DateTime<Utc>>,
    end: Option<DateTime<Utc>>
) -> Result<ApiResult>
[src]

pub async fn snapshot<'_>(&'_ mut self, skip_head: bool) -> Result<ApiResult>[src]

pub async fn clean_tombstones<'_>(&'_ mut self) -> Result<ApiResult>[src]

Auto Trait Implementations

impl<T> Send for PromClient<T>

impl<T> Sync for PromClient<T>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T