redfish-codegen 0.3.1

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

use redfish_macros::IntoRedfishMessage;

/// This registry defines messages related to environmental sensors, heating and cooling equipment, or other environmental conditions.
#[derive(Clone, Debug, IntoRedfishMessage)]
#[message(crate::models::message::v1_1_2::Message)]
pub enum Environmental {
    /// This message shall be used to indicate that a fan was inserted or installed
    #[message(message = "Fan '%1' was inserted.")]
    #[message(id = "Environmental.1.0.0.FanInserted")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    FanInserted(
        /// This argument shall contain a string that identifies or describes the `Fan` resource.
        String,
    ),
    /// This message shall be used to indicate that a humidity reading violates an lower caution threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is below the value of the `Reading` property within the `LowerCaution` or `LowerCautionUser` properties.
    #[message(message = "Humidity '%1' reading of %2 percent is below the %3 lower caution threshold.")]
    #[message(id = "Environmental.1.0.0.HumidityBelowLowerCautionThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    HumidityBelowLowerCautionThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the humidity reading.
        String,
        /// This argument shall contain the humidity as a percentage.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `LowerCaution` or `LowerCautionUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading violates an upper caution threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is above the value of the `Reading` property within the `UpperCaution` or `UpperCautionUser` properties.  Otherwise, the message shall indicate that the reading violates an internal level or threshold.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is above the %3 upper caution threshold.")]
    #[message(id = "Environmental.1.0.0.TemperatureAboveUpperCautionThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureAboveUpperCautionThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// If the reading originated from a `Sensor` resource, this argument shall contain the value of the `Reading` property within the `UpperCaution` or `UpperCautionUser` properties of the `Sensor` resource.  Otherwise, this argument shall contain an internal level or threshold value.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading violates an upper fatal threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is above the value of the `Reading` property within the `UpperFatal` property.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is above the %3 upper fatal threshold.")]
    #[message(id = "Environmental.1.0.0.TemperatureAboveUpperFatalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureAboveUpperFatalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `UpperFatal` property of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading violates a lower critical threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is below the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is below the %3 lower critical threshold.")]
    #[message(id = "Environmental.1.0.0.TemperatureBelowLowerCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureBelowLowerCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading violates an internal warning level.  This message shall be used for temperature properties or `Sensor` resources that implement boolean trip points for a caution limit, such as from hardware mechanisms with no threshold value.  The temperature properties or `Sensor` resources may contain readable thresholds that coexist with this unspecified trip point.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) exceeds the warning level.")]
    #[message(id = "Environmental.1.0.0.TemperatureWarning")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureWarning(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading violates a lower caution threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is below the value of the `Reading` property within the `LowerCaution` or `LowerCautionUser` properties.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is below the %3 lower caution threshold.")]
    #[message(id = "Environmental.1.0.0.TemperatureBelowLowerCautionThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureBelowLowerCautionThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `LowerCaution` or `LowerCautionUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading violates an internal critical level.  This message shall be used for temperature properties or `Sensor` resources that implement boolean trip points for a critical limit, such as from hardware mechanisms with no threshold value.  The temperature properties or `Sensor` resources may contain readable thresholds that coexist with this unspecified trip point.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) exceeds the critical level.")]
    #[message(id = "Environmental.1.0.0.TemperatureCritical")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureCritical(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
    ),
    /// This message shall be used to indicate that a humidity reading, previously below the lower critical threshold, no longer violates the lower critical threshold.  However, the humidity violates at least one lower threshold and is not within the normal operating range.
    #[message(message = "Humidity '%1' reading of %2 percent is now above the %3 lower critical threshold but remains outside of normal range.")]
    #[message(id = "Environmental.1.0.0.HumidityAboveLowerCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    HumidityAboveLowerCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the humidity reading.
        String,
        /// This argument shall contain the humidity as a percentage.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading violates an upper critical threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is above the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is above the %3 upper critical threshold.")]
    #[message(id = "Environmental.1.0.0.TemperatureAboveUpperCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureAboveUpperCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a humidity reading violates a lower critical threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is below the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties.
    #[message(message = "Humidity '%1' reading of %2 percent is below the %3 lower critical threshold.")]
    #[message(id = "Environmental.1.0.0.HumidityBelowLowerCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    HumidityBelowLowerCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the humidity reading.
        String,
        /// This argument shall contain the humidity as a percentage.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a humidity reading violates  an upper caution threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is above the value of the `Reading` property within the `UpperCaution` or `UpperCautionUser` properties.
    #[message(message = "Humidity '%1' reading of %2 percent is above the %3 upper caution threshold.")]
    #[message(id = "Environmental.1.0.0.HumidityAboveUpperCautionThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    HumidityAboveUpperCautionThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the humidity reading.
        String,
        /// This argument shall contain the humidity as a percentage.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `UpperCaution` or `UpperCautionUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading violates a lower fatal threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is below the value of the `Reading` property within the `LowerFatal` property.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is below the %3 lower fatal threshold.")]
    #[message(id = "Environmental.1.0.0.TemperatureBelowLowerFatalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureBelowLowerFatalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `LowerFatal` property of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading has returned to its normal operating range.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is within normal operating range.")]
    #[message(id = "Environmental.1.0.0.TemperatureNormal")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    TemperatureNormal(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
    ),
    /// This message shall be used to indicate that a humidity reading has returned to its normal operating range.
    #[message(message = "Humidity '%1' reading of %2 percent is within normal operating range.")]
    #[message(id = "Environmental.1.0.0.HumidityNormal")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    HumidityNormal(
        /// This argument shall contain a string that identifies or describes the location or physical context of the humidity reading.
        String,
        /// This argument shall contain the humidity as a percentage.
        f64,
    ),
    /// This message shall be used to indicate that a fan has failed.
    #[message(message = "Fan '%1' has failed.")]
    #[message(id = "Environmental.1.0.0.FanFailed")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the fan hardware and replace any faulty component.")]
    FanFailed(
        /// This argument shall contain a string that identifies or describes the `Fan` resource.
        String,
    ),
    /// This message shall be used to indicate that a fan group is operating with a warning status or in a non-redundant state due to a fault or a change in configuration.
    #[message(message = "Fan group '%1' is in a warning state.")]
    #[message(id = "Environmental.1.0.0.FanGroupWarning")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "None.")]
    FanGroupWarning(
        /// This argument shall contain a string that identifies or describes the group of `Fan` resources.
        String,
    ),
    /// This message shall be used to indicate that a temperature reading, previously above the upper critical threshold, no longer violates the upper critical threshold.  However, the temperature violates at least one upper threshold and is not within the normal operating range.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is now below the %3 upper critical threshold but remains outside of normal range.")]
    #[message(id = "Environmental.1.0.0.TemperatureBelowUpperCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureBelowUpperCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a fan was repaired, replaced, or otherwise returned to normal operation.
    #[message(message = "Fan '%1' was restored.")]
    #[message(id = "Environmental.1.0.0.FanRestored")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    FanRestored(
        /// This argument shall contain a string that identifies or describes the `Fan` resource.
        String,
    ),
    /// This message shall be used to indicate that a temperature reading no longer violates an internal critical level, but still violates an internal warning level.  This message shall be used for temperature properties or `Sensor` resources that implement boolean trip points for a critical limit, such as from hardware mechanisms with no threshold value.  The temperature properties or `Sensor` resources may contain readable thresholds that coexist with this unspecified trip point.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) no longer exceeds the critical level.")]
    #[message(id = "Environmental.1.0.0.TemperatureNoLongerCritical")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureNoLongerCritical(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
    ),
    /// This message shall be used to indicate that a temperature reading, previously above the upper fatal threshold, no longer violates the upper fatal threshold.  However, the temperature violates at least one upper threshold and is not within the normal operating range.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is now below the %3 upper fatal threshold but remains outside of normal range.")]
    #[message(id = "Environmental.1.0.0.TemperatureBelowUpperFatalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureBelowUpperFatalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `UpperFatal` property of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a fan group is operating in a critical state due to a fault or a change in configuration.
    #[message(message = "Fan group '%1' is in a critical state.")]
    #[message(id = "Environmental.1.0.0.FanGroupCritical")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "None.")]
    FanGroupCritical(
        /// This argument shall contain a string that identifies or describes the group of `Fan` resources.
        String,
    ),
    /// This message shall be used to indicate that a fan group has returned to a normal operating state.
    #[message(message = "Fan group '%1' is operating normally.")]
    #[message(id = "Environmental.1.0.0.FanGroupNormal")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    FanGroupNormal(
        /// This argument shall contain a string that identifies or describes the group of `Fan` resources.
        String,
    ),
    /// This message shall be used to indicate that a temperature reading, previously below the lower critical threshold, no longer violates the lower critical threshold.  However, the temperature violates at least one lower threshold and is not within the normal operating range.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is now above the %3 lower critical threshold but remains outside of normal range.")]
    #[message(id = "Environmental.1.0.0.TemperatureAboveLowerCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureAboveLowerCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a humidity reading violates an upper caution threshold.  If the reading originates from a `Sensor` resource, the message shall indicate that the value of the `Reading` property is above the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties.
    #[message(message = "Humidity '%1' reading of %2 percent is above the %3 upper critical threshold.")]
    #[message(id = "Environmental.1.0.0.HumidityAboveUpperCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    HumidityAboveUpperCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the humidity reading.
        String,
        /// This argument shall contain the humidity as a percentage.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a humidity reading, previously above the critical threshold, no longer violates the critical threshold.  However, the humidity violates at least one upper threshold and is not within the normal operating range.
    #[message(message = "Humidity '%1' reading of %2 percent is now below the %3 upper critical threshold but remains outside of normal range.")]
    #[message(id = "Environmental.1.0.0.HumidityBelowUpperCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    HumidityBelowUpperCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the humidity as a percentage.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that a fan was removed.
    #[message(message = "Fan '%1' was removed.")]
    #[message(id = "Environmental.1.0.0.FanRemoved")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    FanRemoved(
        /// This argument shall contain a string that identifies or describes the `Fan` resource.
        String,
    ),
    /// This message shall be used to indicate that a temperature reading, previously below the lower fatal threshold, no longer violates the lower fatal threshold.  However, the temperature violates at least one lower threshold and is not within the normal operating range.
    #[message(message = "Temperature '%1' reading of %2 degrees (C) is now above the %3 lower fatal threshold but remains outside of normal range.")]
    #[message(id = "Environmental.1.0.0.TemperatureAboveLowerFatalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resource listed in OriginOfCondition.")]
    TemperatureAboveLowerFatalThreshold(
        /// This argument shall contain a string that identifies or describes the location or physical context of the temperature reading.
        String,
        /// This argument shall contain the temperature in degrees Celsius.
        f64,
        /// This argument shall contain the value of the `Reading` property within the `LowerFatal` property of the `Sensor` resource.
        f64,
    ),
}