pub struct DynamicCountersApi<'a> { /* private fields */ }Expand description
Dynamic dispatch wrapper for the Counters API.
Implementations§
Source§impl<'a> DynamicCountersApi<'a>
impl<'a> DynamicCountersApi<'a>
Sourcepub async fn get_counters(
&self,
nodewise: Option<bool>,
cluster_node_id: Option<&str>,
) -> Result<CountersDto, NifiError>
pub async fn get_counters( &self, nodewise: Option<bool>, cluster_node_id: Option<&str>, ) -> Result<CountersDto, NifiError>
Gets the current counters for this NiFi
Sourcepub async fn update_all_counters(&self) -> Result<CountersDto, NifiError>
pub async fn update_all_counters(&self) -> Result<CountersDto, NifiError>
Updates all counters. This will reset all counter values to 0
Sourcepub async fn update_counter(&self, id: &str) -> Result<CounterDto, NifiError>
pub async fn update_counter(&self, id: &str) -> Result<CounterDto, NifiError>
Updates the specified counter. This will reset the counter value to 0
Auto Trait Implementations§
impl<'a> Freeze for DynamicCountersApi<'a>
impl<'a> !RefUnwindSafe for DynamicCountersApi<'a>
impl<'a> Send for DynamicCountersApi<'a>
impl<'a> Sync for DynamicCountersApi<'a>
impl<'a> Unpin for DynamicCountersApi<'a>
impl<'a> UnsafeUnpin for DynamicCountersApi<'a>
impl<'a> !UnwindSafe for DynamicCountersApi<'a>
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