1 #pragma once 2 /**************************************************************** 3 * READ THIS WARNING FIRST 4 * This is an auto-generated header which contains definitions 5 * for Redfish DMTF defined messages. 6 * DO NOT modify this registry outside of running the 7 * parse_registries.py script. The definitions contained within 8 * this file are owned by DMTF. Any modifications to these files 9 * should be first pushed to the relevant registry in the DMTF 10 * github organization. 11 ***************************************************************/ 12 #include "registries.hpp" 13 14 #include <array> 15 16 // clang-format off 17 18 namespace redfish::registries::platform 19 { 20 const Header header = { 21 "Copyright 2023 DMTF. All rights reserved.", 22 "#MessageRegistry.v1_6_2.MessageRegistry", 23 "Platform.1.0.1", 24 "Compute Platform Message Registry", 25 "en", 26 "This registry defines messages for compute platforms, covering topics related to processor, memory, and I/O device connectivity.", 27 "Platform", 28 "1.0.1", 29 "DMTF", 30 }; 31 constexpr const char* url = 32 "https://redfish.dmtf.org/registries/Platform.1.0.1.json"; 33 34 constexpr std::array registry = 35 { 36 MessageEntry{ 37 "OperatingSystemCrash", 38 { 39 "Indicates the operating system was halted due to a catastrophic error.", 40 "An operating system crash occurred.", 41 "Critical", 42 0, 43 {}, 44 "Check additional diagnostic data if available.", 45 }}, 46 MessageEntry{ 47 "PlatformError", 48 { 49 "Indicates that a platform error occurred.", 50 "A platform error occurred.", 51 "Warning", 52 0, 53 {}, 54 "Check additional diagnostic data if available.", 55 }}, 56 MessageEntry{ 57 "PlatformErrorAtLocation", 58 { 59 "Indicates that a platform error occurred and device or other location information is available.", 60 "A platform error occurred at location '%1'.", 61 "Warning", 62 1, 63 { 64 "string", 65 }, 66 "Check additional diagnostic data if available.", 67 }}, 68 MessageEntry{ 69 "UnhandledExceptionDetectedAfterReset", 70 { 71 "Indicates that an unhandled exception caused the platform to reset.", 72 "An unhandled exception caused a platform reset.", 73 "Critical", 74 0, 75 {}, 76 "Check additional diagnostic data if available.", 77 }}, 78 79 }; 80 81 enum class Index 82 { 83 operatingSystemCrash = 0, 84 platformError = 1, 85 platformErrorAtLocation = 2, 86 unhandledExceptionDetectedAfterReset = 3, 87 }; 88 } // namespace redfish::registries::platform 89