1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Pulsar Admin REST API
 *
 * This provides the REST API for admin operations
 *
 * The version of the OpenAPI document: v2
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NamespaceBundleStats {
    #[serde(rename = "cacheSize", skip_serializing_if = "Option::is_none")]
    pub cache_size: Option<i64>,
    #[serde(rename = "consumerCount", skip_serializing_if = "Option::is_none")]
    pub consumer_count: Option<i32>,
    #[serde(rename = "msgRateIn", skip_serializing_if = "Option::is_none")]
    pub msg_rate_in: Option<f64>,
    #[serde(rename = "msgRateOut", skip_serializing_if = "Option::is_none")]
    pub msg_rate_out: Option<f64>,
    #[serde(rename = "msgThroughputIn", skip_serializing_if = "Option::is_none")]
    pub msg_throughput_in: Option<f64>,
    #[serde(rename = "msgThroughputOut", skip_serializing_if = "Option::is_none")]
    pub msg_throughput_out: Option<f64>,
    #[serde(rename = "producerCount", skip_serializing_if = "Option::is_none")]
    pub producer_count: Option<i32>,
    #[serde(rename = "topics", skip_serializing_if = "Option::is_none")]
    pub topics: Option<i64>,
}

impl NamespaceBundleStats {
    pub fn new() -> NamespaceBundleStats {
        NamespaceBundleStats {
            cache_size: None,
            consumer_count: None,
            msg_rate_in: None,
            msg_rate_out: None,
            msg_throughput_in: None,
            msg_throughput_out: None,
            producer_count: None,
            topics: None,
        }
    }
}