pulsar_admin_sdk/models/
namespace_bundle_stats.rs

1/*
2 * Pulsar Admin REST API
3 *
4 * This provides the REST API for admin operations
5 *
6 * The version of the OpenAPI document: v2
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct NamespaceBundleStats {
15    #[serde(rename = "cacheSize", skip_serializing_if = "Option::is_none")]
16    pub cache_size: Option<i64>,
17    #[serde(rename = "consumerCount", skip_serializing_if = "Option::is_none")]
18    pub consumer_count: Option<i32>,
19    #[serde(rename = "msgRateIn", skip_serializing_if = "Option::is_none")]
20    pub msg_rate_in: Option<f64>,
21    #[serde(rename = "msgRateOut", skip_serializing_if = "Option::is_none")]
22    pub msg_rate_out: Option<f64>,
23    #[serde(rename = "msgThroughputIn", skip_serializing_if = "Option::is_none")]
24    pub msg_throughput_in: Option<f64>,
25    #[serde(rename = "msgThroughputOut", skip_serializing_if = "Option::is_none")]
26    pub msg_throughput_out: Option<f64>,
27    #[serde(rename = "producerCount", skip_serializing_if = "Option::is_none")]
28    pub producer_count: Option<i32>,
29    #[serde(rename = "topics", skip_serializing_if = "Option::is_none")]
30    pub topics: Option<i64>,
31}
32
33impl NamespaceBundleStats {
34    pub fn new() -> NamespaceBundleStats {
35        NamespaceBundleStats {
36            cache_size: None,
37            consumer_count: None,
38            msg_rate_in: None,
39            msg_rate_out: None,
40            msg_throughput_in: None,
41            msg_throughput_out: None,
42            producer_count: None,
43            topics: None,
44        }
45    }
46}
47