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
#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct SummaryHeatHeatItem {
    /// The class of operation
    #[serde(rename = "class_name")]
    pub class_name: String,
    /// The type of event
    #[serde(rename = "event_name")]
    pub event_name: String,
    /// The event type id
    #[serde(rename = "event_type")]
    pub event_type: Option<i32>,
    /// Logical inode (LIN)
    #[serde(rename = "lin")]
    pub lin: Option<String>,
    /// The node where this event occurred.
    #[serde(rename = "node")]
    pub node: Option<i32>,
    /// Approximate operations per second for this lin.
    #[serde(rename = "operation_rate")]
    pub operation_rate: f32,
    /// Canonical LIN path if known
    #[serde(rename = "path")]
    pub path: String,
    /// Unix Epoch time in seconds of the request.
    #[serde(rename = "time")]
    pub time: i32,
}