redfish_codegen/registries/platform/
v1_0_0.rs

1// Generated by redfish-codegen. Do not modify.
2
3use redfish_macros::IntoRedfishMessage;
4
5/// This registry defines messages for compute platforms, covering topics related to processor, memory, and I/O device connectivity.
6#[derive(Clone, Debug, IntoRedfishMessage)]
7#[message(crate::models::message::v1_1_2::Message)]
8pub enum Platform {
9    /// This message shall be used to indicate that an unhandled exception caused a compute platform to reset.  The exception was detected after the reset occurred.
10    #[message(message = "An unhandled exception caused a platform reset.")]
11    #[message(id = "Platform.1.0.0.UnhandledExceptionDetectedAfterReset")]
12    #[message(severity = "crate::models::resource::Health::Critical")]
13    #[message(resolution = "Check additional diagnostic data if available.")]
14    UnhandledExceptionDetectedAfterReset,
15
16    /// This message shall be used to indicate that a platform error occurred.
17    #[message(message = "A platform error occurred.")]
18    #[message(id = "Platform.1.0.0.PlatformError")]
19    #[message(severity = "crate::models::resource::Health::Warning")]
20    #[message(resolution = "Check additional diagnostic data if available.")]
21    PlatformError,
22
23    /// This message shall be used to indicate that a platform error occurred with specific device identification information available.
24    #[message(message = "A platform error occurred at location '%1'.")]
25    #[message(id = "Platform.1.0.0.PlatformErrorAtLocation")]
26    #[message(severity = "crate::models::resource::Health::Warning")]
27    #[message(resolution = "Check additional diagnostic data if available.")]
28    PlatformErrorAtLocation(
29        /// This argument shall contain a description of the device or location where the error occurred.
30        String,
31    ),
32    /// This message shall be used to indicate that an unhandled exception caused a compute platform to crash or otherwise halt.
33    #[message(message = "An operating system crash occurred.")]
34    #[message(id = "Platform.1.0.0.OperatingSystemCrash")]
35    #[message(severity = "crate::models::resource::Health::Critical")]
36    #[message(resolution = "Check additional diagnostic data if available.")]
37    OperatingSystemCrash,
38
39}