redfish_codegen/models/storage/v1_10_1/
rates.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// This type describes the various controller rates used for processes such as volume rebuild or consistency checks.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Rates {
9    /// The percentage of controller resources used for performing a data consistency check on volumes.
10    #[serde(rename = "ConsistencyCheckRatePercent")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub consistency_check_rate_percent: Option<i64>,
13    /// The percentage of controller resources used for rebuilding/repairing volumes.
14    #[serde(rename = "RebuildRatePercent")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub rebuild_rate_percent: Option<i64>,
17    /// The percentage of controller resources used for transforming volumes from one configuration to another.
18    #[serde(rename = "TransformationRatePercent")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub transformation_rate_percent: Option<i64>,
21}
22
23impl crate::Metadata<'static> for Rates {
24    const JSON_SCHEMA: &'static str = "Storage.v1_10_1.json";
25}