[−][src]Struct prometheus_query::PromClient
Methods
impl PromClient<HttpsConnector<HttpConnector>>
[src]
pub fn new_https(
host: &str,
query_timeout: Option<Duration>
) -> Result<PromClient<HttpsConnector<HttpConnector>>>
[src]
host: &str,
query_timeout: Option<Duration>
) -> Result<PromClient<HttpsConnector<HttpConnector>>>
impl<T: Connect + 'static> PromClient<T>
[src]
pub async fn instant_query<'_>(
&'_ mut self,
query: String,
at: Option<DateTime<Utc>>
) -> Result<ApiResult>
[src]
&'_ mut self,
query: String,
at: Option<DateTime<Utc>>
) -> Result<ApiResult>
pub async fn range_query<'_>(
&'_ mut self,
query: String,
start: DateTime<Utc>,
end: DateTime<Utc>,
step: Step
) -> Result<ApiResult>
[src]
&'_ mut self,
query: String,
start: DateTime<Utc>,
end: DateTime<Utc>,
step: Step
) -> Result<ApiResult>
pub async fn series<'_>(
&'_ mut self,
selectors: Vec<String>,
start: DateTime<Utc>,
end: DateTime<Utc>
) -> Result<ApiResult>
[src]
&'_ mut self,
selectors: Vec<String>,
start: DateTime<Utc>,
end: DateTime<Utc>
) -> Result<ApiResult>
pub async fn label_names<'_>(&'_ mut self) -> Result<ApiResult>
[src]
pub async fn label_values<'_>(
&'_ mut self,
label_name: String
) -> Result<ApiResult>
[src]
&'_ mut self,
label_name: String
) -> Result<ApiResult>
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]
&'_ mut self,
series: Vec<String>,
start: Option<DateTime<Utc>>,
end: Option<DateTime<Utc>>
) -> Result<ApiResult>
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]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.