redfish_codegen/models/port/v1_9_0/
congestion.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The congestion properties for a CXL port.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Congestion {
9    /// The interval for the CXL Specification-defined 'Egress Port Congestion' mechanism to take samples in nanoseconds.
10    #[serde(rename = "BackpressureSampleInterval")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub backpressure_sample_interval: Option<i64>,
13    /// The interval for the CXL Specification-defined 'Completion Counting' mechanism to collect the number of transmitted responses in a single counter in nanoseconds.
14    #[serde(rename = "CompletionCollectionInterval")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub completion_collection_interval: Option<i64>,
17    /// Indicates whether congestion telemetry collection is enabled for this port.
18    #[serde(rename = "CongestionTelemetryEnabled")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub congestion_telemetry_enabled: Option<bool>,
21    /// The threshold for moderate egress port congestion as a percentage.
22    #[serde(rename = "EgressModeratePercentage")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub egress_moderate_percentage: Option<i64>,
25    /// The threshold for severe egress port congestion as a percentage.
26    #[serde(rename = "EgressSeverePercentage")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub egress_severe_percentage: Option<i64>,
29    /// The estimated maximum sustained sum of requests and recent responses across the entire device, serving as the basis for the CXL Specification-defined 'QoS Limit Fraction'.
30    #[serde(rename = "MaxSustainedRequestCmpBias")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub max_sustained_request_cmp_bias: Option<i64>,
33}
34
35impl crate::Metadata<'static> for Congestion {
36    const JSON_SCHEMA: &'static str = "Port.v1_9_0.json";
37}