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 used for general events related to Sensor resources.
#[derive(Clone, Debug, IntoRedfishMessage)]
#[message(crate::models::message::v1_1_2::Message)]
pub enum SensorEvent {
    /// This message shall be used to indicate that the value of the `Reading` in a `Sensor` resource, previously below the threshold, is now above the value of the `Reading` property within the `LowerFatal` property.  However, the value of the `Reading` property is still below at least one `Reading` property of another lower threshold and is not within the normal operating range.
    #[message(message = "Sensor '%1' reading of %2 (%3) is now above the %4 lower fatal threshold but remains outside of normal range.")]
    #[message(id = "SensorEvent.1.0.0.ReadingAboveLowerFatalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingAboveLowerFatalThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property within the `LowerFatal` property of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is above the value of the `Reading` property within the `UpperFatal` property.
    #[message(message = "Sensor '%1' reading of %2 (%3) is above the %4 upper fatal threshold.")]
    #[message(id = "SensorEvent.1.0.0.ReadingAboveUpperFatalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingAboveUpperFatalThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property within the `UpperFatal` property of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource exceeds the value of an internal critical level.  This message shall be used for `Sensor` resources that do not contain readable critical threshold values, such as boolean trip points or similiar hardware mechanisms.  This message shall not be used if the `Reading` property within a corresponding critical threshold is available.
    #[message(message = "Sensor '%1' reading of %2 (%3) exceeds the critical level.")]
    #[message(id = "SensorEvent.1.0.0.ReadingCritical")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingCritical(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
    ),
    /// This message shall be used to indicate that the service is unable to communicate with a sensor or has otherwise detected a fault condition with the sensor.
    #[message(message = "Sensor '%1' has failed.")]
    #[message(id = "SensorEvent.1.0.0.SensorFailure")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the sensor hardware or connection.")]
    SensorFailure(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
    ),
    /// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is below the value of the `Reading` property within the `LowerCaution` or `LowerCautionUser` properties.
    #[message(message = "Sensor '%1' reading of %2 (%3) is below the %4 lower caution threshold.")]
    #[message(id = "SensorEvent.1.0.0.ReadingBelowLowerCautionThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingBelowLowerCautionThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals 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 the value of the `Reading` property in a `Sensor` resource is below the value of the `Reading` property within the `LowerFatal` property.
    #[message(message = "Sensor '%1' reading of %2 (%3) is below the %4 lower fatal threshold.")]
    #[message(id = "SensorEvent.1.0.0.ReadingBelowLowerFatalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingBelowLowerFatalThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property within the `LowerFatal` property of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that the value of the `Reading` in a `Sensor` resource, previously above the threshold, is now below the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties.  However, the value of the `Reading` property is still above at least one `Reading` property of another upper threshold and is not within the normal operating range.
    #[message(message = "Sensor '%1' reading of %2 (%3) is now below the %4 upper critical threshold but remains outside of normal range.")]
    #[message(id = "SensorEvent.1.0.0.ReadingBelowUpperCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingBelowUpperCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals 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 the value of the `Reading` property in a `Sensor` resource no longer exceeds the value of an internal critical level, but the value still exceeds an internal warning level.  This message shall be used for `Sensor` resources that do not contain readable critical threshold values, such as boolean trip points or similiar hardware mechanisms.  This message shall not be used if the `Reading` property within a corresponding critical threshold is available.
    #[message(message = "Sensor '%1' reading of %2 (%3) no longer exceeds the critcal level.")]
    #[message(id = "SensorEvent.1.0.0.ReadingNoLongerCritical")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingNoLongerCritical(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
    ),
    /// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is below the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties.
    #[message(message = "Sensor '%1' reading of %2 (%3) is below the %4 lower critical threshold.")]
    #[message(id = "SensorEvent.1.0.0.ReadingBelowLowerCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingBelowLowerCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals 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 the value of the `Reading` property in a `Sensor` resource exceeds the value of an internal warning level.  This message shall be used for `Sensor` resources that do not contain readable caution threshold values, such as boolean trip points or similiar hardware mechanisms.  This message shall not be used if the `Reading` property within a corresponding caution threshold is available.
    #[message(message = "Sensor '%1' reading of %2 (%3) exceeds the warning level.")]
    #[message(id = "SensorEvent.1.0.0.ReadingWarning")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingWarning(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
    ),
    /// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is above the value of the `Reading` property within the `UpperCaution` or `UpperCautionUser` properties.
    #[message(message = "Sensor '%1' reading of %2 (%3) is above the %4 upper caution threshold.")]
    #[message(id = "SensorEvent.1.0.0.ReadingAboveUpperCautionThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingAboveUpperCautionThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals 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 the value of the `Reading` in a `Sensor` resource, previously above the threshold, is now below the value of the `Reading` property within the `UpperFatal` property.  However, the value of the `Reading` property is still above at least one `Reading` property of another upper threshold and is not within the normal operating range.
    #[message(message = "Sensor '%1' reading of %2 (%3) is now below the %4 upper fatal threshold but remains outside of normal range.")]
    #[message(id = "SensorEvent.1.0.0.ReadingBelowUpperFatalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingBelowUpperFatalThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property within the `UpperFatal` property of the `Sensor` resource.
        f64,
    ),
    /// This message shall be used to indicate that the service is able to communicate with a sensor that had previously failed, or the sensor has been repaired or replaced.
    #[message(message = "Sensor '%1' has been restored.")]
    #[message(id = "SensorEvent.1.0.0.SensorRestored")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    SensorRestored(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
    ),
    /// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is above the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties.
    #[message(message = "Sensor '%1' reading of %2 (%3) is above the %4 upper critical threshold.")]
    #[message(id = "SensorEvent.1.0.0.ReadingAboveUpperCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingAboveUpperCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals 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 the service received invalid data while attempting to update the value of the `Reading` property in a `Sensor` resource.
    #[message(message = "Invalid reading received from sensor '%1'.")]
    #[message(id = "SensorEvent.1.0.0.InvalidSensorReading")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the sensor hardware or connection.")]
    InvalidSensorReading(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
    ),
    /// This message shall be used to indicate that the value of the `Reading` in a `Sensor` resource, previously below the threshold, is now above the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties.  However, the value of the `Reading` property is still below at least one `Reading` property of another lower threshold and is not within the normal operating range.
    #[message(message = "Sensor '%1' reading of %2 (%3) is now above the %4 lower critical threshold but remains outside of normal range.")]
    #[message(id = "SensorEvent.1.0.0.ReadingAboveLowerCriticalThreshold")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
    ReadingAboveLowerCriticalThreshold(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
        /// This argument shall contain a number that equals 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 the value of the `Reading` property within a `Sensor` resource has returned to its normal operating range.
    #[message(message = "Sensor '%1' reading of %2 (%3) is within normal operating range.")]
    #[message(id = "SensorEvent.1.0.0.SensorReadingNormalRange")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "None.")]
    SensorReadingNormalRange(
        /// This argument shall contain a string that identifies or describes the `Sensor` resource.
        String,
        /// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
        f64,
        /// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource.  Unitless readings should use `count`.
        String,
    ),
}