pub struct StatsHandler { /* private fields */ }
Expand description
Stats handler for retrieving metrics
Implementations§
Source§impl StatsHandler
impl StatsHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn cluster(&self, query: Option<StatsQuery>) -> Result<StatsResponse>
pub async fn cluster(&self, query: Option<StatsQuery>) -> Result<StatsResponse>
Get cluster stats
Sourcepub async fn cluster_last(&self) -> Result<LastStatsResponse>
pub async fn cluster_last(&self) -> Result<LastStatsResponse>
Get cluster stats for last interval
Sourcepub async fn node(
&self,
uid: u32,
query: Option<StatsQuery>,
) -> Result<StatsResponse>
pub async fn node( &self, uid: u32, query: Option<StatsQuery>, ) -> Result<StatsResponse>
Get node stats
Sourcepub async fn node_last(&self, uid: u32) -> Result<LastStatsResponse>
pub async fn node_last(&self, uid: u32) -> Result<LastStatsResponse>
Get node stats for last interval
Sourcepub async fn nodes(
&self,
query: Option<StatsQuery>,
) -> Result<AggregatedStatsResponse>
pub async fn nodes( &self, query: Option<StatsQuery>, ) -> Result<AggregatedStatsResponse>
Get all nodes stats
Sourcepub async fn nodes_last(&self) -> Result<AggregatedStatsResponse>
pub async fn nodes_last(&self) -> Result<AggregatedStatsResponse>
Get all nodes last stats
Sourcepub async fn node_alt(&self, uid: u32) -> Result<StatsResponse>
pub async fn node_alt(&self, uid: u32) -> Result<StatsResponse>
Get node stats via alternate path form
Sourcepub async fn node_last_alt(&self, uid: u32) -> Result<LastStatsResponse>
pub async fn node_last_alt(&self, uid: u32) -> Result<LastStatsResponse>
Get node last stats via alternate path form
Sourcepub async fn database(
&self,
uid: u32,
query: Option<StatsQuery>,
) -> Result<StatsResponse>
pub async fn database( &self, uid: u32, query: Option<StatsQuery>, ) -> Result<StatsResponse>
Get database stats
Sourcepub async fn database_last(&self, uid: u32) -> Result<LastStatsResponse>
pub async fn database_last(&self, uid: u32) -> Result<LastStatsResponse>
Get database stats for last interval
Sourcepub async fn databases(
&self,
query: Option<StatsQuery>,
) -> Result<AggregatedStatsResponse>
pub async fn databases( &self, query: Option<StatsQuery>, ) -> Result<AggregatedStatsResponse>
Get all databases stats
Sourcepub async fn databases_last(&self) -> Result<AggregatedStatsResponse>
pub async fn databases_last(&self) -> Result<AggregatedStatsResponse>
Get all databases last stats (aggregate)
Sourcepub async fn database_alt(&self, uid: u32) -> Result<StatsResponse>
pub async fn database_alt(&self, uid: u32) -> Result<StatsResponse>
Get database stats via alternate path form
Sourcepub async fn database_last_alt(&self, uid: u32) -> Result<LastStatsResponse>
pub async fn database_last_alt(&self, uid: u32) -> Result<LastStatsResponse>
Get database last stats via alternate path form
Sourcepub async fn shard(
&self,
uid: u32,
query: Option<StatsQuery>,
) -> Result<StatsResponse>
pub async fn shard( &self, uid: u32, query: Option<StatsQuery>, ) -> Result<StatsResponse>
Get shard stats
Sourcepub async fn shards(
&self,
query: Option<StatsQuery>,
) -> Result<AggregatedStatsResponse>
pub async fn shards( &self, query: Option<StatsQuery>, ) -> Result<AggregatedStatsResponse>
Get all shards stats
Auto Trait Implementations§
impl Freeze for StatsHandler
impl !RefUnwindSafe for StatsHandler
impl Send for StatsHandler
impl Sync for StatsHandler
impl Unpin for StatsHandler
impl !UnwindSafe for StatsHandler
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