redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The congestion properties for a CXL port.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Congestion {
    /// The interval for the CXL Specification-defined 'Egress Port Congestion' mechanism to take samples in nanoseconds.
    #[serde(rename = "BackpressureSampleInterval")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub backpressure_sample_interval: Option<i64>,
    /// The interval for the CXL Specification-defined 'Completion Counting' mechanism to collect the number of transmitted responses in a single counter in nanoseconds.
    #[serde(rename = "CompletionCollectionInterval")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub completion_collection_interval: Option<i64>,
    /// Indicates whether congestion telemetry collection is enabled for this port.
    #[serde(rename = "CongestionTelemetryEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub congestion_telemetry_enabled: Option<bool>,
    /// The threshold for moderate egress port congestion as a percentage.
    #[serde(rename = "EgressModeratePercentage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub egress_moderate_percentage: Option<i64>,
    /// The threshold for severe egress port congestion as a percentage.
    #[serde(rename = "EgressSeverePercentage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub egress_severe_percentage: Option<i64>,
    /// 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'.
    #[serde(rename = "MaxSustainedRequestCmpBias")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_sustained_request_cmp_bias: Option<i64>,
}

impl crate::Metadata<'static> for Congestion {
    const JSON_SCHEMA: &'static str = "Port.v1_8_0.json";
}