openapi_service_fabric/models/node_load_info.rs
1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NodeLoadInfo : Information about load on a Service Fabric node. It holds a summary of all metrics and their load on a node.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodeLoadInfo {
17 /// The name of a Service Fabric node.
18 #[serde(rename = "NodeName", skip_serializing_if = "Option::is_none")]
19 pub node_name: Option<String>,
20 /// List that contains metrics and their load information on this node.
21 #[serde(
22 rename = "NodeLoadMetricInformation",
23 skip_serializing_if = "Option::is_none"
24 )]
25 pub node_load_metric_information: Option<Vec<models::NodeLoadMetricInformation>>,
26}
27
28impl NodeLoadInfo {
29 /// Information about load on a Service Fabric node. It holds a summary of all metrics and their load on a node.
30 pub fn new() -> NodeLoadInfo {
31 NodeLoadInfo {
32 node_name: None,
33 node_load_metric_information: None,
34 }
35 }
36}