1*665e7602SGunnar Mills #pragma once 2*665e7602SGunnar Mills /**************************************************************** 3*665e7602SGunnar Mills * READ THIS WARNING FIRST 4*665e7602SGunnar Mills * This is an auto-generated header which contains definitions 5*665e7602SGunnar Mills * for Redfish DMTF defined messages. 6*665e7602SGunnar Mills * DO NOT modify this registry outside of running the 7*665e7602SGunnar Mills * parse_registries.py script. The definitions contained within 8*665e7602SGunnar Mills * this file are owned by DMTF. Any modifications to these files 9*665e7602SGunnar Mills * should be first pushed to the relevant registry in the DMTF 10*665e7602SGunnar Mills * github organization. 11*665e7602SGunnar Mills ***************************************************************/ 12*665e7602SGunnar Mills #include "registries.hpp" 13*665e7602SGunnar Mills 14*665e7602SGunnar Mills #include <array> 15*665e7602SGunnar Mills 16*665e7602SGunnar Mills // clang-format off 17*665e7602SGunnar Mills 18*665e7602SGunnar Mills namespace redfish::registries::sensor_event 19*665e7602SGunnar Mills { 20*665e7602SGunnar Mills const Header header = { 21*665e7602SGunnar Mills "Copyright 2022-2023 DMTF. All rights reserved.", 22*665e7602SGunnar Mills "#MessageRegistry.v1_6_2.MessageRegistry", 23*665e7602SGunnar Mills "SensorEvent.1.0.1", 24*665e7602SGunnar Mills "Sensor Event Message Registry", 25*665e7602SGunnar Mills "en", 26*665e7602SGunnar Mills "This registry defines messages used for general events related to Sensor resources.", 27*665e7602SGunnar Mills "SensorEvent", 28*665e7602SGunnar Mills "1.0.1", 29*665e7602SGunnar Mills "DMTF", 30*665e7602SGunnar Mills }; 31*665e7602SGunnar Mills constexpr const char* url = 32*665e7602SGunnar Mills "https://redfish.dmtf.org/registries/SensorEvent.1.0.1.json"; 33*665e7602SGunnar Mills 34*665e7602SGunnar Mills constexpr std::array registry = 35*665e7602SGunnar Mills { 36*665e7602SGunnar Mills MessageEntry{ 37*665e7602SGunnar Mills "InvalidSensorReading", 38*665e7602SGunnar Mills { 39*665e7602SGunnar Mills "Indicates that the service received an invalid reading from a sensor.", 40*665e7602SGunnar Mills "Invalid reading received from sensor '%1'.", 41*665e7602SGunnar Mills "Warning", 42*665e7602SGunnar Mills 1, 43*665e7602SGunnar Mills { 44*665e7602SGunnar Mills "string", 45*665e7602SGunnar Mills }, 46*665e7602SGunnar Mills "Check the sensor hardware or connection.", 47*665e7602SGunnar Mills }}, 48*665e7602SGunnar Mills MessageEntry{ 49*665e7602SGunnar Mills "ReadingAboveLowerCriticalThreshold", 50*665e7602SGunnar Mills { 51*665e7602SGunnar Mills "Indicates that a sensor reading is no longer below the lower critical threshold but is still outside of normal operating range.", 52*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is now above the %4 lower critical threshold but remains outside of normal range.", 53*665e7602SGunnar Mills "Warning", 54*665e7602SGunnar Mills 4, 55*665e7602SGunnar Mills { 56*665e7602SGunnar Mills "string", 57*665e7602SGunnar Mills "number", 58*665e7602SGunnar Mills "string", 59*665e7602SGunnar Mills "number", 60*665e7602SGunnar Mills }, 61*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 62*665e7602SGunnar Mills }}, 63*665e7602SGunnar Mills MessageEntry{ 64*665e7602SGunnar Mills "ReadingAboveLowerFatalThreshold", 65*665e7602SGunnar Mills { 66*665e7602SGunnar Mills "Indicates that a sensor reading is no longer below the lower fatal threshold but is still outside of normal operating range.", 67*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is now above the %4 lower fatal threshold but remains outside of normal range.", 68*665e7602SGunnar Mills "Critical", 69*665e7602SGunnar Mills 4, 70*665e7602SGunnar Mills { 71*665e7602SGunnar Mills "string", 72*665e7602SGunnar Mills "number", 73*665e7602SGunnar Mills "string", 74*665e7602SGunnar Mills "number", 75*665e7602SGunnar Mills }, 76*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 77*665e7602SGunnar Mills }}, 78*665e7602SGunnar Mills MessageEntry{ 79*665e7602SGunnar Mills "ReadingAboveUpperCautionThreshold", 80*665e7602SGunnar Mills { 81*665e7602SGunnar Mills "Indicates that a sensor reading is above the upper caution threshold.", 82*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is above the %4 upper caution threshold.", 83*665e7602SGunnar Mills "Warning", 84*665e7602SGunnar Mills 4, 85*665e7602SGunnar Mills { 86*665e7602SGunnar Mills "string", 87*665e7602SGunnar Mills "number", 88*665e7602SGunnar Mills "string", 89*665e7602SGunnar Mills "number", 90*665e7602SGunnar Mills }, 91*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 92*665e7602SGunnar Mills }}, 93*665e7602SGunnar Mills MessageEntry{ 94*665e7602SGunnar Mills "ReadingAboveUpperCriticalThreshold", 95*665e7602SGunnar Mills { 96*665e7602SGunnar Mills "Indicates that a sensor reading is above the upper critical threshold.", 97*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is above the %4 upper critical threshold.", 98*665e7602SGunnar Mills "Critical", 99*665e7602SGunnar Mills 4, 100*665e7602SGunnar Mills { 101*665e7602SGunnar Mills "string", 102*665e7602SGunnar Mills "number", 103*665e7602SGunnar Mills "string", 104*665e7602SGunnar Mills "number", 105*665e7602SGunnar Mills }, 106*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 107*665e7602SGunnar Mills }}, 108*665e7602SGunnar Mills MessageEntry{ 109*665e7602SGunnar Mills "ReadingAboveUpperFatalThreshold", 110*665e7602SGunnar Mills { 111*665e7602SGunnar Mills "Indicates that a sensor reading is above the upper fatal threshold.", 112*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is above the %4 upper fatal threshold.", 113*665e7602SGunnar Mills "Critical", 114*665e7602SGunnar Mills 4, 115*665e7602SGunnar Mills { 116*665e7602SGunnar Mills "string", 117*665e7602SGunnar Mills "number", 118*665e7602SGunnar Mills "string", 119*665e7602SGunnar Mills "number", 120*665e7602SGunnar Mills }, 121*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 122*665e7602SGunnar Mills }}, 123*665e7602SGunnar Mills MessageEntry{ 124*665e7602SGunnar Mills "ReadingBelowLowerCautionThreshold", 125*665e7602SGunnar Mills { 126*665e7602SGunnar Mills "Indicates that a sensor reading is below the lower caution threshold.", 127*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is below the %4 lower caution threshold.", 128*665e7602SGunnar Mills "Warning", 129*665e7602SGunnar Mills 4, 130*665e7602SGunnar Mills { 131*665e7602SGunnar Mills "string", 132*665e7602SGunnar Mills "number", 133*665e7602SGunnar Mills "string", 134*665e7602SGunnar Mills "number", 135*665e7602SGunnar Mills }, 136*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 137*665e7602SGunnar Mills }}, 138*665e7602SGunnar Mills MessageEntry{ 139*665e7602SGunnar Mills "ReadingBelowLowerCriticalThreshold", 140*665e7602SGunnar Mills { 141*665e7602SGunnar Mills "Indicates that a sensor reading is below the lower critical threshold.", 142*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is below the %4 lower critical threshold.", 143*665e7602SGunnar Mills "Critical", 144*665e7602SGunnar Mills 4, 145*665e7602SGunnar Mills { 146*665e7602SGunnar Mills "string", 147*665e7602SGunnar Mills "number", 148*665e7602SGunnar Mills "string", 149*665e7602SGunnar Mills "number", 150*665e7602SGunnar Mills }, 151*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 152*665e7602SGunnar Mills }}, 153*665e7602SGunnar Mills MessageEntry{ 154*665e7602SGunnar Mills "ReadingBelowLowerFatalThreshold", 155*665e7602SGunnar Mills { 156*665e7602SGunnar Mills "Indicates that a sensor reading is below the lower fatal threshold.", 157*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is below the %4 lower fatal threshold.", 158*665e7602SGunnar Mills "Critical", 159*665e7602SGunnar Mills 4, 160*665e7602SGunnar Mills { 161*665e7602SGunnar Mills "string", 162*665e7602SGunnar Mills "number", 163*665e7602SGunnar Mills "string", 164*665e7602SGunnar Mills "number", 165*665e7602SGunnar Mills }, 166*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 167*665e7602SGunnar Mills }}, 168*665e7602SGunnar Mills MessageEntry{ 169*665e7602SGunnar Mills "ReadingBelowUpperCriticalThreshold", 170*665e7602SGunnar Mills { 171*665e7602SGunnar Mills "Indicates that a sensor reading is no longer above the upper critical threshold but is still outside of normal operating range.", 172*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is now below the %4 upper critical threshold but remains outside of normal range.", 173*665e7602SGunnar Mills "Warning", 174*665e7602SGunnar Mills 4, 175*665e7602SGunnar Mills { 176*665e7602SGunnar Mills "string", 177*665e7602SGunnar Mills "number", 178*665e7602SGunnar Mills "string", 179*665e7602SGunnar Mills "number", 180*665e7602SGunnar Mills }, 181*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 182*665e7602SGunnar Mills }}, 183*665e7602SGunnar Mills MessageEntry{ 184*665e7602SGunnar Mills "ReadingBelowUpperFatalThreshold", 185*665e7602SGunnar Mills { 186*665e7602SGunnar Mills "Indicates that a sensor reading is no longer above the upper fatal threshold but is still outside of normal operating range.", 187*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is now below the %4 upper fatal threshold but remains outside of normal range.", 188*665e7602SGunnar Mills "Critical", 189*665e7602SGunnar Mills 4, 190*665e7602SGunnar Mills { 191*665e7602SGunnar Mills "string", 192*665e7602SGunnar Mills "number", 193*665e7602SGunnar Mills "string", 194*665e7602SGunnar Mills "number", 195*665e7602SGunnar Mills }, 196*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 197*665e7602SGunnar Mills }}, 198*665e7602SGunnar Mills MessageEntry{ 199*665e7602SGunnar Mills "ReadingCritical", 200*665e7602SGunnar Mills { 201*665e7602SGunnar Mills "Indicates that a sensor reading exceeds an internal critical level.", 202*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) exceeds the critical level.", 203*665e7602SGunnar Mills "Critical", 204*665e7602SGunnar Mills 3, 205*665e7602SGunnar Mills { 206*665e7602SGunnar Mills "string", 207*665e7602SGunnar Mills "number", 208*665e7602SGunnar Mills "string", 209*665e7602SGunnar Mills }, 210*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 211*665e7602SGunnar Mills }}, 212*665e7602SGunnar Mills MessageEntry{ 213*665e7602SGunnar Mills "ReadingNoLongerCritical", 214*665e7602SGunnar Mills { 215*665e7602SGunnar Mills "Indicates that a sensor reading no longer exceeds an internal critical level but still exceeds an internal warning level.", 216*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) no longer exceeds the critical level.", 217*665e7602SGunnar Mills "Warning", 218*665e7602SGunnar Mills 3, 219*665e7602SGunnar Mills { 220*665e7602SGunnar Mills "string", 221*665e7602SGunnar Mills "number", 222*665e7602SGunnar Mills "string", 223*665e7602SGunnar Mills }, 224*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 225*665e7602SGunnar Mills }}, 226*665e7602SGunnar Mills MessageEntry{ 227*665e7602SGunnar Mills "ReadingWarning", 228*665e7602SGunnar Mills { 229*665e7602SGunnar Mills "Indicates that a sensor reading exceeds an internal warning level.", 230*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) exceeds the warning level.", 231*665e7602SGunnar Mills "Warning", 232*665e7602SGunnar Mills 3, 233*665e7602SGunnar Mills { 234*665e7602SGunnar Mills "string", 235*665e7602SGunnar Mills "number", 236*665e7602SGunnar Mills "string", 237*665e7602SGunnar Mills }, 238*665e7602SGunnar Mills "Check the condition of the resources listed in RelatedItem.", 239*665e7602SGunnar Mills }}, 240*665e7602SGunnar Mills MessageEntry{ 241*665e7602SGunnar Mills "SensorFailure", 242*665e7602SGunnar Mills { 243*665e7602SGunnar Mills "Indicates that the service cannot communicate with a sensor or has detected a failure.", 244*665e7602SGunnar Mills "Sensor '%1' has failed.", 245*665e7602SGunnar Mills "Warning", 246*665e7602SGunnar Mills 1, 247*665e7602SGunnar Mills { 248*665e7602SGunnar Mills "string", 249*665e7602SGunnar Mills }, 250*665e7602SGunnar Mills "Check the sensor hardware or connection.", 251*665e7602SGunnar Mills }}, 252*665e7602SGunnar Mills MessageEntry{ 253*665e7602SGunnar Mills "SensorReadingNormalRange", 254*665e7602SGunnar Mills { 255*665e7602SGunnar Mills "Indicates that a sensor reading is now within normal operating range.", 256*665e7602SGunnar Mills "Sensor '%1' reading of %2 (%3) is within normal operating range.", 257*665e7602SGunnar Mills "OK", 258*665e7602SGunnar Mills 3, 259*665e7602SGunnar Mills { 260*665e7602SGunnar Mills "string", 261*665e7602SGunnar Mills "number", 262*665e7602SGunnar Mills "string", 263*665e7602SGunnar Mills }, 264*665e7602SGunnar Mills "None.", 265*665e7602SGunnar Mills }}, 266*665e7602SGunnar Mills MessageEntry{ 267*665e7602SGunnar Mills "SensorRestored", 268*665e7602SGunnar Mills { 269*665e7602SGunnar Mills "Indicates that a sensor was repaired or communications were restored. It may also indicate that the service is receiving valid data from a sensor.", 270*665e7602SGunnar Mills "Sensor '%1' was restored.", 271*665e7602SGunnar Mills "OK", 272*665e7602SGunnar Mills 1, 273*665e7602SGunnar Mills { 274*665e7602SGunnar Mills "string", 275*665e7602SGunnar Mills }, 276*665e7602SGunnar Mills "None.", 277*665e7602SGunnar Mills }}, 278*665e7602SGunnar Mills 279*665e7602SGunnar Mills }; 280*665e7602SGunnar Mills 281*665e7602SGunnar Mills enum class Index 282*665e7602SGunnar Mills { 283*665e7602SGunnar Mills invalidSensorReading = 0, 284*665e7602SGunnar Mills readingAboveLowerCriticalThreshold = 1, 285*665e7602SGunnar Mills readingAboveLowerFatalThreshold = 2, 286*665e7602SGunnar Mills readingAboveUpperCautionThreshold = 3, 287*665e7602SGunnar Mills readingAboveUpperCriticalThreshold = 4, 288*665e7602SGunnar Mills readingAboveUpperFatalThreshold = 5, 289*665e7602SGunnar Mills readingBelowLowerCautionThreshold = 6, 290*665e7602SGunnar Mills readingBelowLowerCriticalThreshold = 7, 291*665e7602SGunnar Mills readingBelowLowerFatalThreshold = 8, 292*665e7602SGunnar Mills readingBelowUpperCriticalThreshold = 9, 293*665e7602SGunnar Mills readingBelowUpperFatalThreshold = 10, 294*665e7602SGunnar Mills readingCritical = 11, 295*665e7602SGunnar Mills readingNoLongerCritical = 12, 296*665e7602SGunnar Mills readingWarning = 13, 297*665e7602SGunnar Mills sensorFailure = 14, 298*665e7602SGunnar Mills sensorReadingNormalRange = 15, 299*665e7602SGunnar Mills sensorRestored = 16, 300*665e7602SGunnar Mills }; 301*665e7602SGunnar Mills } // namespace redfish::registries::sensor_event 302