nifi-rust-client 0.4.0

Apache NiFi REST API client library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// @generated — do not edit; run `cargo run -p nifi-openapi-gen`

use crate::NifiError;
/// The Counters API.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait CountersApi {
    /// Gets the current counters for this NiFi
    async fn get_counters(
        &self,
        nodewise: Option<bool>,
        cluster_node_id: Option<&str>,
    ) -> Result<crate::v2_7_2::types::CountersDto, NifiError>;
    /// Updates all counters. This will reset all counter values to 0
    async fn update_all_counters(&self) -> Result<crate::v2_7_2::types::CountersDto, NifiError>;
    /// Updates the specified counter. This will reset the counter value to 0
    async fn update_counter(&self, id: &str)
    -> Result<crate::v2_7_2::types::CounterDto, NifiError>;
}