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::environmental 19 { 20 const Header header = { 21 "Copyright 2023 DMTF. All rights reserved.", 22 "#MessageRegistry.v1_6_2.MessageRegistry", 23 "Environmental.1.0.1", 24 "Environmental Message Registry", 25 "en", 26 "This registry defines messages related to environmental sensors, heating and cooling equipment, or other environmental conditions.", 27 "Environmental", 28 "1.0.1", 29 "DMTF", 30 }; 31 constexpr const char* url = 32 "https://redfish.dmtf.org/registries/Environmental.1.0.1.json"; 33 34 constexpr std::array registry = 35 { 36 MessageEntry{ 37 "FanFailed", 38 { 39 "Indicates that a fan has failed.", 40 "Fan '%1' has failed.", 41 "Warning", 42 1, 43 { 44 "string", 45 }, 46 "Check the fan hardware and replace any faulty component.", 47 }}, 48 MessageEntry{ 49 "FanGroupCritical", 50 { 51 "Indicates that a fan group has a critical status.", 52 "Fan group '%1' is in a critical state.", 53 "Critical", 54 1, 55 { 56 "string", 57 }, 58 "None.", 59 }}, 60 MessageEntry{ 61 "FanGroupNormal", 62 { 63 "Indicates that a fan group has returned to normal operations.", 64 "Fan group '%1' is operating normally.", 65 "OK", 66 1, 67 { 68 "string", 69 }, 70 "None.", 71 }}, 72 MessageEntry{ 73 "FanGroupWarning", 74 { 75 "Indicates that a fan group has a warning status.", 76 "Fan group '%1' is in a warning state.", 77 "Warning", 78 1, 79 { 80 "string", 81 }, 82 "None.", 83 }}, 84 MessageEntry{ 85 "FanInserted", 86 { 87 "Indicates that a fan was inserted or installed.", 88 "Fan '%1' was inserted.", 89 "OK", 90 1, 91 { 92 "string", 93 }, 94 "None.", 95 }}, 96 MessageEntry{ 97 "FanRemoved", 98 { 99 "Indicates that a fan was removed.", 100 "Fan '%1' was removed.", 101 "OK", 102 1, 103 { 104 "string", 105 }, 106 "None.", 107 }}, 108 MessageEntry{ 109 "FanRestored", 110 { 111 "Indicates that a fan was repaired or restored to normal operation.", 112 "Fan '%1' was restored.", 113 "OK", 114 1, 115 { 116 "string", 117 }, 118 "None.", 119 }}, 120 MessageEntry{ 121 "HumidityAboveLowerCriticalThreshold", 122 { 123 "Indicates that a humidity reading is no longer below the lower critical threshold but is still outside of normal operating range.", 124 "Humidity '%1' reading of %2 percent is now above the %3 lower critical threshold but remains outside of normal range.", 125 "Warning", 126 3, 127 { 128 "string", 129 "number", 130 "number", 131 }, 132 "Check the condition of the resource listed in OriginOfCondition.", 133 }}, 134 MessageEntry{ 135 "HumidityAboveUpperCautionThreshold", 136 { 137 "Indicates that a humidity reading is above the upper caution threshold.", 138 "Humidity '%1' reading of %2 percent is above the %3 upper caution threshold.", 139 "Warning", 140 3, 141 { 142 "string", 143 "number", 144 "number", 145 }, 146 "Check the condition of the resource listed in OriginOfCondition.", 147 }}, 148 MessageEntry{ 149 "HumidityAboveUpperCriticalThreshold", 150 { 151 "Indicates that a humidity reading is above the upper critical threshold.", 152 "Humidity '%1' reading of %2 percent is above the %3 upper critical threshold.", 153 "Critical", 154 3, 155 { 156 "string", 157 "number", 158 "number", 159 }, 160 "Check the condition of the resource listed in OriginOfCondition.", 161 }}, 162 MessageEntry{ 163 "HumidityBelowLowerCautionThreshold", 164 { 165 "Indicates that a humidity reading is below the lower caution threshold.", 166 "Humidity '%1' reading of %2 percent is below the %3 lower caution threshold.", 167 "Warning", 168 3, 169 { 170 "string", 171 "number", 172 "number", 173 }, 174 "Check the condition of the resource listed in OriginOfCondition.", 175 }}, 176 MessageEntry{ 177 "HumidityBelowLowerCriticalThreshold", 178 { 179 "Indicates that a humidity reading is below the lower critical threshold.", 180 "Humidity '%1' reading of %2 percent is below the %3 lower critical threshold.", 181 "Critical", 182 3, 183 { 184 "string", 185 "number", 186 "number", 187 }, 188 "Check the condition of the resource listed in OriginOfCondition.", 189 }}, 190 MessageEntry{ 191 "HumidityBelowUpperCriticalThreshold", 192 { 193 "Indicates that a humidity reading is no longer above the upper critical threshold but is still outside of normal operating range.", 194 "Humidity '%1' reading of %2 percent is now below the %3 upper critical threshold but remains outside of normal range.", 195 "Warning", 196 3, 197 { 198 "string", 199 "number", 200 "number", 201 }, 202 "Check the condition of the resource listed in OriginOfCondition.", 203 }}, 204 MessageEntry{ 205 "HumidityNormal", 206 { 207 "Indicates that a humidity reading is now within normal operating range.", 208 "Humidity '%1' reading of %2 percent is within normal operating range.", 209 "OK", 210 2, 211 { 212 "string", 213 "number", 214 }, 215 "None.", 216 }}, 217 MessageEntry{ 218 "TemperatureAboveLowerCriticalThreshold", 219 { 220 "Indicates that a temperature reading is no longer below the lower critical threshold but is still outside of normal operating range.", 221 "Temperature '%1' reading of %2 degrees (C) is now above the %3 lower critical threshold but remains outside of normal range.", 222 "Warning", 223 3, 224 { 225 "string", 226 "number", 227 "number", 228 }, 229 "Check the condition of the resource listed in OriginOfCondition.", 230 }}, 231 MessageEntry{ 232 "TemperatureAboveLowerFatalThreshold", 233 { 234 "Indicates that a temperature reading is no longer below the lower fatal threshold but is still outside of normal operating range.", 235 "Temperature '%1' reading of %2 degrees (C) is now above the %3 lower fatal threshold but remains outside of normal range.", 236 "Critical", 237 3, 238 { 239 "string", 240 "number", 241 "number", 242 }, 243 "Check the condition of the resource listed in OriginOfCondition.", 244 }}, 245 MessageEntry{ 246 "TemperatureAboveUpperCautionThreshold", 247 { 248 "Indicates that a temperature reading is above the upper caution threshold.", 249 "Temperature '%1' reading of %2 degrees (C) is above the %3 upper caution threshold.", 250 "Warning", 251 3, 252 { 253 "string", 254 "number", 255 "number", 256 }, 257 "Check the condition of the resource listed in OriginOfCondition.", 258 }}, 259 MessageEntry{ 260 "TemperatureAboveUpperCriticalThreshold", 261 { 262 "Indicates that a temperature reading is above the upper critical threshold.", 263 "Temperature '%1' reading of %2 degrees (C) is above the %3 upper critical threshold.", 264 "Critical", 265 3, 266 { 267 "string", 268 "number", 269 "number", 270 }, 271 "Check the condition of the resource listed in OriginOfCondition.", 272 }}, 273 MessageEntry{ 274 "TemperatureAboveUpperFatalThreshold", 275 { 276 "Indicates that a temperature reading is above the upper fatal threshold.", 277 "Temperature '%1' reading of %2 degrees (C) is above the %3 upper fatal threshold.", 278 "Critical", 279 3, 280 { 281 "string", 282 "number", 283 "number", 284 }, 285 "Check the condition of the resource listed in OriginOfCondition.", 286 }}, 287 MessageEntry{ 288 "TemperatureBelowLowerCautionThreshold", 289 { 290 "Indicates that a temperature reading is below the lower caution threshold.", 291 "Temperature '%1' reading of %2 degrees (C) is below the %3 lower caution threshold.", 292 "Warning", 293 3, 294 { 295 "string", 296 "number", 297 "number", 298 }, 299 "Check the condition of the resource listed in OriginOfCondition.", 300 }}, 301 MessageEntry{ 302 "TemperatureBelowLowerCriticalThreshold", 303 { 304 "Indicates that a temperature reading is below the lower critical threshold.", 305 "Temperature '%1' reading of %2 degrees (C) is below the %3 lower critical threshold.", 306 "Critical", 307 3, 308 { 309 "string", 310 "number", 311 "number", 312 }, 313 "Check the condition of the resource listed in OriginOfCondition.", 314 }}, 315 MessageEntry{ 316 "TemperatureBelowLowerFatalThreshold", 317 { 318 "Indicates that a temperature reading is below the lower fatal threshold.", 319 "Temperature '%1' reading of %2 degrees (C) is below the %3 lower fatal threshold.", 320 "Critical", 321 3, 322 { 323 "string", 324 "number", 325 "number", 326 }, 327 "Check the condition of the resource listed in OriginOfCondition.", 328 }}, 329 MessageEntry{ 330 "TemperatureBelowUpperCriticalThreshold", 331 { 332 "Indicates that a temperature reading is no longer above the upper critical threshold but is still outside of normal operating range.", 333 "Temperature '%1' reading of %2 degrees (C) is now below the %3 upper critical threshold but remains outside of normal range.", 334 "Warning", 335 3, 336 { 337 "string", 338 "number", 339 "number", 340 }, 341 "Check the condition of the resource listed in OriginOfCondition.", 342 }}, 343 MessageEntry{ 344 "TemperatureBelowUpperFatalThreshold", 345 { 346 "Indicates that a temperature reading is no longer above the upper fatal threshold but is still outside of normal operating range.", 347 "Temperature '%1' reading of %2 degrees (C) is now below the %3 upper fatal threshold but remains outside of normal range.", 348 "Critical", 349 3, 350 { 351 "string", 352 "number", 353 "number", 354 }, 355 "Check the condition of the resource listed in OriginOfCondition.", 356 }}, 357 MessageEntry{ 358 "TemperatureCritical", 359 { 360 "Indicates that a temperature reading exceeds an internal critical level.", 361 "Temperature '%1' reading of %2 degrees (C) exceeds the critical level.", 362 "Critical", 363 2, 364 { 365 "string", 366 "number", 367 }, 368 "Check the condition of the resource listed in OriginOfCondition.", 369 }}, 370 MessageEntry{ 371 "TemperatureNoLongerCritical", 372 { 373 "Indicates that a temperature reading no longer exceeds an internal critical level but still exceeds an internal warning level.", 374 "Temperature '%1' reading of %2 degrees (C) no longer exceeds the critical level.", 375 "Warning", 376 2, 377 { 378 "string", 379 "number", 380 }, 381 "Check the condition of the resource listed in OriginOfCondition.", 382 }}, 383 MessageEntry{ 384 "TemperatureNormal", 385 { 386 "Indicates that a temperature reading is now within normal operating range.", 387 "Temperature '%1' reading of %2 degrees (C) is within normal operating range.", 388 "OK", 389 2, 390 { 391 "string", 392 "number", 393 }, 394 "None.", 395 }}, 396 MessageEntry{ 397 "TemperatureWarning", 398 { 399 "Indicates that a temperature reading exceeds an internal warning level.", 400 "Temperature '%1' reading of %2 degrees (C) exceeds the warning level.", 401 "Warning", 402 2, 403 { 404 "string", 405 "number", 406 }, 407 "Check the condition of the resource listed in OriginOfCondition.", 408 }}, 409 410 }; 411 412 enum class Index 413 { 414 fanFailed = 0, 415 fanGroupCritical = 1, 416 fanGroupNormal = 2, 417 fanGroupWarning = 3, 418 fanInserted = 4, 419 fanRemoved = 5, 420 fanRestored = 6, 421 humidityAboveLowerCriticalThreshold = 7, 422 humidityAboveUpperCautionThreshold = 8, 423 humidityAboveUpperCriticalThreshold = 9, 424 humidityBelowLowerCautionThreshold = 10, 425 humidityBelowLowerCriticalThreshold = 11, 426 humidityBelowUpperCriticalThreshold = 12, 427 humidityNormal = 13, 428 temperatureAboveLowerCriticalThreshold = 14, 429 temperatureAboveLowerFatalThreshold = 15, 430 temperatureAboveUpperCautionThreshold = 16, 431 temperatureAboveUpperCriticalThreshold = 17, 432 temperatureAboveUpperFatalThreshold = 18, 433 temperatureBelowLowerCautionThreshold = 19, 434 temperatureBelowLowerCriticalThreshold = 20, 435 temperatureBelowLowerFatalThreshold = 21, 436 temperatureBelowUpperCriticalThreshold = 22, 437 temperatureBelowUpperFatalThreshold = 23, 438 temperatureCritical = 24, 439 temperatureNoLongerCritical = 25, 440 temperatureNormal = 26, 441 temperatureWarning = 27, 442 }; 443 } // namespace redfish::registries::environmental 444