1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 /**************************************************************** 5 * READ THIS WARNING FIRST 6 * This is an auto-generated header which contains definitions 7 * for Redfish DMTF defined messages. 8 * DO NOT modify this registry outside of running the 9 * parse_registries.py script. The definitions contained within 10 * this file are owned by DMTF. Any modifications to these files 11 * should be first pushed to the relevant registry in the DMTF 12 * github organization. 13 ***************************************************************/ 14 #include "registries.hpp" 15 16 #include <array> 17 18 // clang-format off 19 20 namespace redfish::registries 21 { 22 struct Power 23 { 24 static constexpr Header header = { 25 "Copyright 2023 DMTF. All rights reserved.", 26 "#MessageRegistry.v1_6_2.MessageRegistry", 27 1, 28 0, 29 1, 30 "Power Message Registry", 31 "en", 32 "This registry defines messages related to electrical measurements and power distribution equipment.", 33 "Power", 34 "DMTF", 35 }; 36 37 static constexpr const char* url = 38 "https://redfish.dmtf.org/registries/Power.1.0.1.json"; 39 40 static constexpr std::array registry = 41 { 42 MessageEntry{ 43 "BreakerFault", 44 { 45 "Indicates that a circuit breaker has an internal fault.", 46 "Fault detected in breaker '%1'.", 47 "Critical", 48 1, 49 { 50 "string", 51 }, 52 "Check the breaker hardware and replace any faulty components.", 53 }}, 54 MessageEntry{ 55 "BreakerReset", 56 { 57 "Indicates that a circuit breaker reset.", 58 "Breaker '%1' reset.", 59 "OK", 60 1, 61 { 62 "string", 63 }, 64 "None.", 65 }}, 66 MessageEntry{ 67 "BreakerTripped", 68 { 69 "Indicates that a circuit breaker tripped.", 70 "Breaker '%1' has tripped.", 71 "Critical", 72 1, 73 { 74 "string", 75 }, 76 "Check the circuit and connected devices, and disconnect or replace any faulty devices.", 77 }}, 78 MessageEntry{ 79 "CircuitPoweredOff", 80 { 81 "Indicates that a circuit was powered off.", 82 "Circuit '%1' powered off.", 83 "OK", 84 1, 85 { 86 "string", 87 }, 88 "None.", 89 }}, 90 MessageEntry{ 91 "CircuitPoweredOn", 92 { 93 "Indicates that a circuit was powered on.", 94 "Circuit '%1' powered on.", 95 "OK", 96 1, 97 { 98 "string", 99 }, 100 "None.", 101 }}, 102 MessageEntry{ 103 "CurrentAboveLowerCriticalThreshold", 104 { 105 "Indicates that a current reading is no longer below the lower critical threshold but is still outside of normal operating range.", 106 "Current '%1' reading of %2 amperes is now above the %3 lower critical threshold but remains outside of normal range.", 107 "Warning", 108 3, 109 { 110 "string", 111 "number", 112 "number", 113 }, 114 "Check the condition of the resource listed in OriginOfCondition.", 115 }}, 116 MessageEntry{ 117 "CurrentAboveLowerFatalThreshold", 118 { 119 "Indicates that a current reading is no longer below the lower fatal threshold but is still outside of normal operating range.", 120 "Current '%1' reading of %2 amperes is now above the %3 lower fatal threshold but remains outside of normal range.", 121 "Critical", 122 3, 123 { 124 "string", 125 "number", 126 "number", 127 }, 128 "Check the condition of the resource listed in OriginOfCondition.", 129 }}, 130 MessageEntry{ 131 "CurrentAboveUpperCautionThreshold", 132 { 133 "Indicates that a current reading is above the upper caution threshold.", 134 "Current '%1' reading of %2 amperes is above the %3 upper caution threshold.", 135 "Warning", 136 3, 137 { 138 "string", 139 "number", 140 "number", 141 }, 142 "Check the condition of the resource listed in OriginOfCondition.", 143 }}, 144 MessageEntry{ 145 "CurrentAboveUpperCriticalThreshold", 146 { 147 "Indicates that a current reading is above the upper critical threshold.", 148 "Current '%1' reading of %2 amperes is above the %3 upper critical threshold.", 149 "Critical", 150 3, 151 { 152 "string", 153 "number", 154 "number", 155 }, 156 "Check the condition of the resource listed in OriginOfCondition.", 157 }}, 158 MessageEntry{ 159 "CurrentAboveUpperFatalThreshold", 160 { 161 "Indicates that a current reading is above the upper fatal threshold.", 162 "Current '%1' reading of %2 amperes is above the %3 upper fatal threshold.", 163 "Critical", 164 3, 165 { 166 "string", 167 "number", 168 "number", 169 }, 170 "Check the condition of the resource listed in OriginOfCondition.", 171 }}, 172 MessageEntry{ 173 "CurrentBelowLowerCautionThreshold", 174 { 175 "Indicates that a current reading is below the lower caution threshold.", 176 "Current '%1' reading of %2 amperes is below the %3 lower caution threshold.", 177 "Warning", 178 3, 179 { 180 "string", 181 "number", 182 "number", 183 }, 184 "Check the condition of the resource listed in OriginOfCondition.", 185 }}, 186 MessageEntry{ 187 "CurrentBelowLowerCriticalThreshold", 188 { 189 "Indicates that a current reading is below the lower critical threshold.", 190 "Current '%1' reading of %2 amperes is below the %3 lower critical threshold.", 191 "Critical", 192 3, 193 { 194 "string", 195 "number", 196 "number", 197 }, 198 "Check the condition of the resource listed in OriginOfCondition.", 199 }}, 200 MessageEntry{ 201 "CurrentBelowLowerFatalThreshold", 202 { 203 "Indicates that a current reading is below the lower fatal threshold.", 204 "Current '%1' reading of %2 amperes is below the %3 lower fatal threshold.", 205 "Critical", 206 3, 207 { 208 "string", 209 "number", 210 "number", 211 }, 212 "Check the condition of the resource listed in OriginOfCondition.", 213 }}, 214 MessageEntry{ 215 "CurrentBelowUpperCriticalThreshold", 216 { 217 "Indicates that a current reading is no longer above the upper critical threshold but is still outside of normal operating range.", 218 "Current '%1' reading of %2 amperes is now below the %3 upper critical threshold but remains outside of normal range.", 219 "Warning", 220 3, 221 { 222 "string", 223 "number", 224 "number", 225 }, 226 "Check the condition of the resource listed in OriginOfCondition.", 227 }}, 228 MessageEntry{ 229 "CurrentBelowUpperFatalThreshold", 230 { 231 "Indicates that a current reading is no longer above the upper fatal threshold but is still outside of normal operating range.", 232 "Current '%1' reading of %2 amperes is now below the %3 upper fatal threshold but remains outside of normal range.", 233 "Critical", 234 3, 235 { 236 "string", 237 "number", 238 "number", 239 }, 240 "Check the condition of the resource listed in OriginOfCondition.", 241 }}, 242 MessageEntry{ 243 "CurrentCritical", 244 { 245 "Indicates that a current reading exceeds an internal critical level.", 246 "Current '%1' reading of %2 amperes exceeds the critical level.", 247 "Critical", 248 2, 249 { 250 "string", 251 "number", 252 }, 253 "Check the condition of the resource listed in OriginOfCondition.", 254 }}, 255 MessageEntry{ 256 "CurrentNoLongerCritical", 257 { 258 "Indicates that a current reading no longer exceeds an internal critical level but still exceeds an internal warning level.", 259 "Current '%1' reading of %2 amperes no longer exceeds the critical level.", 260 "Warning", 261 2, 262 { 263 "string", 264 "number", 265 }, 266 "Check the condition of the resource listed in OriginOfCondition.", 267 }}, 268 MessageEntry{ 269 "CurrentNormal", 270 { 271 "Indicates that a current reading is now within normal operating range.", 272 "Current '%1' reading of %2 amperes is within normal operating range.", 273 "OK", 274 2, 275 { 276 "string", 277 "number", 278 }, 279 "None.", 280 }}, 281 MessageEntry{ 282 "CurrentWarning", 283 { 284 "Indicates that a current reading exceeds an internal warning level.", 285 "Current '%1' reading of %2 amperes exceeds the warning level.", 286 "Warning", 287 2, 288 { 289 "string", 290 "number", 291 }, 292 "Check the condition of the resource listed in OriginOfCondition.", 293 }}, 294 MessageEntry{ 295 "FrequencyAboveLowerCriticalThreshold", 296 { 297 "Indicates that a frequency reading is no longer below the lower critical threshold but is still outside of normal operating range.", 298 "Frequency '%1' reading of %2 hertz is now above the %3 lower critical threshold but remains outside of normal range.", 299 "Warning", 300 3, 301 { 302 "string", 303 "number", 304 "number", 305 }, 306 "Check the condition of the resource listed in OriginOfCondition.", 307 }}, 308 MessageEntry{ 309 "FrequencyAboveUpperCautionThreshold", 310 { 311 "Indicates that a frequency reading is above the upper caution threshold.", 312 "Frequency '%1' reading of %2 hertz is above the %3 upper caution threshold.", 313 "Warning", 314 3, 315 { 316 "string", 317 "number", 318 "number", 319 }, 320 "Check the condition of the resource listed in OriginOfCondition.", 321 }}, 322 MessageEntry{ 323 "FrequencyAboveUpperCriticalThreshold", 324 { 325 "Indicates that a frequency reading is above the upper critical threshold.", 326 "Frequency '%1' reading of %2 hertz is above the %3 upper critical threshold.", 327 "Critical", 328 3, 329 { 330 "string", 331 "number", 332 "number", 333 }, 334 "Check the condition of the resource listed in OriginOfCondition.", 335 }}, 336 MessageEntry{ 337 "FrequencyBelowLowerCautionThreshold", 338 { 339 "Indicates that a frequency reading is below the lower caution threshold.", 340 "Frequency '%1' reading of %2 hertz is below the %3 lower caution threshold.", 341 "Warning", 342 3, 343 { 344 "string", 345 "number", 346 "number", 347 }, 348 "Check the condition of the resource listed in OriginOfCondition.", 349 }}, 350 MessageEntry{ 351 "FrequencyBelowLowerCriticalThreshold", 352 { 353 "Indicates that a frequency reading is below the lower critical threshold.", 354 "Frequency '%1' reading of %2 hertz is below the %3 lower critical threshold.", 355 "Critical", 356 3, 357 { 358 "string", 359 "number", 360 "number", 361 }, 362 "Check the condition of the resource listed in OriginOfCondition.", 363 }}, 364 MessageEntry{ 365 "FrequencyBelowUpperCriticalThreshold", 366 { 367 "Indicates that a frequency reading is no longer above the upper critical threshold but is still outside of normal operating range.", 368 "Frequency '%1' reading of %2 hertz is now below the %3 upper critical threshold but remains outside of normal range.", 369 "Warning", 370 3, 371 { 372 "string", 373 "number", 374 "number", 375 }, 376 "Check the condition of the resource listed in OriginOfCondition.", 377 }}, 378 MessageEntry{ 379 "FrequencyCritical", 380 { 381 "Indicates that a frequency reading exceeds an internal critical level.", 382 "Frequency '%1' reading of %2 hertz exceeds the critical level.", 383 "Critical", 384 2, 385 { 386 "string", 387 "number", 388 }, 389 "Check the condition of the resource listed in OriginOfCondition.", 390 }}, 391 MessageEntry{ 392 "FrequencyNoLongerCritical", 393 { 394 "Indicates that a frequency reading no longer exceeds an internal critical level but still exceeds an internal warning level.", 395 "Frequency '%1' reading of %2 hertz no longer exceeds the critical level.", 396 "Warning", 397 2, 398 { 399 "string", 400 "number", 401 }, 402 "Check the condition of the resource listed in OriginOfCondition.", 403 }}, 404 MessageEntry{ 405 "FrequencyNormal", 406 { 407 "Indicates that a frequency reading is now within normal operating range.", 408 "Frequency '%1' reading of %2 hertz is within normal operating range.", 409 "OK", 410 2, 411 { 412 "string", 413 "number", 414 }, 415 "None.", 416 }}, 417 MessageEntry{ 418 "FrequencyWarning", 419 { 420 "Indicates that a frequency reading exceeds an internal warning level.", 421 "Frequency '%1' reading of %2 hertz exceeds the warning level.", 422 "Warning", 423 2, 424 { 425 "string", 426 "number", 427 }, 428 "Check the condition of the resource listed in OriginOfCondition.", 429 }}, 430 MessageEntry{ 431 "LineInputPowerFault", 432 { 433 "Indicates a fault on an electrical power input.", 434 "Line input power fault at '%1'.", 435 "Warning", 436 1, 437 { 438 "string", 439 }, 440 "Check the electrical power input and connections.", 441 }}, 442 MessageEntry{ 443 "LineInputPowerRestored", 444 { 445 "Indicates that an electrical power input was restored to normal operation.", 446 "Line input power at '%1' was restored.", 447 "OK", 448 1, 449 { 450 "string", 451 }, 452 "None.", 453 }}, 454 MessageEntry{ 455 "LossOfInputPower", 456 { 457 "Indicates a loss of power at an electrical input.", 458 "Loss of input power at '%1'.", 459 "Warning", 460 1, 461 { 462 "string", 463 }, 464 "Check the electrical power input and connections.", 465 }}, 466 MessageEntry{ 467 "OutletPoweredOff", 468 { 469 "Indicates that an outlet was powered off.", 470 "Outlet '%1' powered off.", 471 "OK", 472 1, 473 { 474 "string", 475 }, 476 "None.", 477 }}, 478 MessageEntry{ 479 "OutletPoweredOn", 480 { 481 "Indicates that an outlet was powered on.", 482 "Outlet '%1' powered on.", 483 "OK", 484 1, 485 { 486 "string", 487 }, 488 "None.", 489 }}, 490 MessageEntry{ 491 "PowerAboveLowerCriticalThreshold", 492 { 493 "Indicates that a power reading is no longer below the lower critical threshold but is still outside of normal operating range.", 494 "Power '%1' reading of %2 watts is now above the %3 lower critical threshold but remains outside of normal range.", 495 "Warning", 496 3, 497 { 498 "string", 499 "number", 500 "number", 501 }, 502 "Check the condition of the resource listed in OriginOfCondition.", 503 }}, 504 MessageEntry{ 505 "PowerAboveLowerFatalThreshold", 506 { 507 "Indicates that a power reading is no longer below the lower fatal threshold but is still outside of normal operating range.", 508 "Power '%1' reading of %2 watts is now above the %3 lower fatal threshold but remains outside of normal range.", 509 "Critical", 510 3, 511 { 512 "string", 513 "number", 514 "number", 515 }, 516 "Check the condition of the resource listed in OriginOfCondition.", 517 }}, 518 MessageEntry{ 519 "PowerAboveUpperCautionThreshold", 520 { 521 "Indicates that a power reading is above the upper caution threshold.", 522 "Power '%1' reading of %2 watts is above the %3 upper caution threshold.", 523 "Warning", 524 3, 525 { 526 "string", 527 "number", 528 "number", 529 }, 530 "Check the condition of the resource listed in OriginOfCondition.", 531 }}, 532 MessageEntry{ 533 "PowerAboveUpperCriticalThreshold", 534 { 535 "Indicates that a power reading is above the upper critical threshold.", 536 "Power '%1' reading of %2 watts is above the %3 upper critical threshold.", 537 "Critical", 538 3, 539 { 540 "string", 541 "number", 542 "number", 543 }, 544 "Check the condition of the resource listed in OriginOfCondition.", 545 }}, 546 MessageEntry{ 547 "PowerAboveUpperFatalThreshold", 548 { 549 "Indicates that a power reading is above the upper fatal threshold.", 550 "Power '%1' reading of %2 watts is above the %3 upper fatal threshold.", 551 "Critical", 552 3, 553 { 554 "string", 555 "number", 556 "number", 557 }, 558 "Check the condition of the resource listed in OriginOfCondition.", 559 }}, 560 MessageEntry{ 561 "PowerBelowLowerCautionThreshold", 562 { 563 "Indicates that a power reading is below the lower caution threshold.", 564 "Power '%1' reading of %2 watts is below the %3 lower caution threshold.", 565 "Warning", 566 3, 567 { 568 "string", 569 "number", 570 "number", 571 }, 572 "Check the condition of the resource listed in OriginOfCondition.", 573 }}, 574 MessageEntry{ 575 "PowerBelowLowerCriticalThreshold", 576 { 577 "Indicates that a power reading is below the lower critical threshold.", 578 "Power '%1' reading of %2 watts is below the %3 lower critical threshold.", 579 "Critical", 580 3, 581 { 582 "string", 583 "number", 584 "number", 585 }, 586 "Check the condition of the resource listed in OriginOfCondition.", 587 }}, 588 MessageEntry{ 589 "PowerBelowLowerFatalThreshold", 590 { 591 "Indicates that a power reading is below the lower fatal threshold.", 592 "Power '%1' reading of %2 watts is below the %3 lower fatal threshold.", 593 "Critical", 594 3, 595 { 596 "string", 597 "number", 598 "number", 599 }, 600 "Check the condition of the resource listed in OriginOfCondition.", 601 }}, 602 MessageEntry{ 603 "PowerBelowUpperCriticalThreshold", 604 { 605 "Indicates that a power reading is no longer above the upper critical threshold but is still outside of normal operating range.", 606 "Power '%1' reading of %2 watts is now below the %3 upper critical threshold but remains outside of normal range.", 607 "Warning", 608 3, 609 { 610 "string", 611 "number", 612 "number", 613 }, 614 "Check the condition of the resource listed in OriginOfCondition.", 615 }}, 616 MessageEntry{ 617 "PowerBelowUpperFatalThreshold", 618 { 619 "Indicates that a power reading is no longer above the upper fatal threshold but is still outside of normal operating range.", 620 "Power '%1' reading of %2 watts is now below the %3 upper fatal threshold but remains outside of normal range.", 621 "Critical", 622 3, 623 { 624 "string", 625 "number", 626 "number", 627 }, 628 "Check the condition of the resource listed in OriginOfCondition.", 629 }}, 630 MessageEntry{ 631 "PowerCritical", 632 { 633 "Indicates that a power reading exceeds an internal critical level.", 634 "Power '%1' reading of %2 watts exceeds the critical level.", 635 "Critical", 636 2, 637 { 638 "string", 639 "number", 640 }, 641 "Check the condition of the resource listed in OriginOfCondition.", 642 }}, 643 MessageEntry{ 644 "PowerNoLongerCritical", 645 { 646 "Indicates that a power reading no longer exceeds an internal critical level but still exceeds an internal warning level.", 647 "Power '%1' reading of %2 watts no longer exceeds the critical level.", 648 "Warning", 649 2, 650 { 651 "string", 652 "number", 653 }, 654 "Check the condition of the resource listed in OriginOfCondition.", 655 }}, 656 MessageEntry{ 657 "PowerNormal", 658 { 659 "Indicates that a power reading is now within normal operating range.", 660 "Power '%1' reading of %2 watts is within normal operating range.", 661 "OK", 662 2, 663 { 664 "string", 665 "number", 666 }, 667 "None.", 668 }}, 669 MessageEntry{ 670 "PowerSupplyFailed", 671 { 672 "Indicates that a power supply has failed.", 673 "Power supply '%1' has failed.", 674 "Warning", 675 1, 676 { 677 "string", 678 }, 679 "Check the power supply hardware and replace any faulty component.", 680 }}, 681 MessageEntry{ 682 "PowerSupplyGroupCritical", 683 { 684 "Indicates that a power supply group has a critical status.", 685 "Power supply group '%1' is in a critical state.", 686 "Critical", 687 1, 688 { 689 "string", 690 }, 691 "None.", 692 }}, 693 MessageEntry{ 694 "PowerSupplyGroupNormal", 695 { 696 "Indicates that a power supply group has returned to normal operations.", 697 "Power supply group '%1' is operating normally.", 698 "OK", 699 1, 700 { 701 "string", 702 }, 703 "None.", 704 }}, 705 MessageEntry{ 706 "PowerSupplyGroupWarning", 707 { 708 "Indicates that a power supply group has a warning status.", 709 "Power supply group '%1' is in a warning state.", 710 "Warning", 711 1, 712 { 713 "string", 714 }, 715 "None.", 716 }}, 717 MessageEntry{ 718 "PowerSupplyInserted", 719 { 720 "Indicates that a power supply was inserted or installed.", 721 "Power supply '%1' was inserted.", 722 "OK", 723 1, 724 { 725 "string", 726 }, 727 "None.", 728 }}, 729 MessageEntry{ 730 "PowerSupplyPredictiveFailure", 731 { 732 "Indicates that the power supply predicted a future failure condition.", 733 "Power supply '%1' has a predicted failure condition.", 734 "Warning", 735 1, 736 { 737 "string", 738 }, 739 "Check the power supply hardware and replace any faulty component.", 740 }}, 741 MessageEntry{ 742 "PowerSupplyRemoved", 743 { 744 "Indicates that a power supply was removed.", 745 "Power supply '%1' was removed.", 746 "OK", 747 1, 748 { 749 "string", 750 }, 751 "None.", 752 }}, 753 MessageEntry{ 754 "PowerSupplyRestored", 755 { 756 "Indicates that a power supply was repaired or restored to normal operation.", 757 "Power supply '%1' was restored.", 758 "OK", 759 1, 760 { 761 "string", 762 }, 763 "None.", 764 }}, 765 MessageEntry{ 766 "PowerSupplyWarning", 767 { 768 "Indicates that a power supply has a warning condition.", 769 "Power supply '%1' has a warning condition.", 770 "Warning", 771 1, 772 { 773 "string", 774 }, 775 "Check the power supply hardware and replace any faulty component.", 776 }}, 777 MessageEntry{ 778 "PowerWarning", 779 { 780 "Indicates that a power reading exceeds an internal warning level.", 781 "Power '%1' reading of %2 watts exceeds the warning level.", 782 "Warning", 783 2, 784 { 785 "string", 786 "number", 787 }, 788 "Check the condition of the resource listed in OriginOfCondition.", 789 }}, 790 MessageEntry{ 791 "VoltageAboveLowerCriticalThreshold", 792 { 793 "Indicates that a voltage reading is no longer below the lower critical threshold but is still outside of normal operating range.", 794 "Voltage '%1' reading of %2 volts is now above the %3 lower critical threshold but remains outside of normal range.", 795 "Warning", 796 3, 797 { 798 "string", 799 "number", 800 "number", 801 }, 802 "Check the condition of the resource listed in OriginOfCondition.", 803 }}, 804 MessageEntry{ 805 "VoltageAboveLowerFatalThreshold", 806 { 807 "Indicates that a voltage reading is no longer below the lower fatal threshold but is still outside of normal operating range.", 808 "Voltage '%1' reading of %2 volts is now above the %3 lower fatal threshold but remains outside of normal range.", 809 "Critical", 810 3, 811 { 812 "string", 813 "number", 814 "number", 815 }, 816 "Check the condition of the resource listed in OriginOfCondition.", 817 }}, 818 MessageEntry{ 819 "VoltageAboveUpperCautionThreshold", 820 { 821 "Indicates that a voltage reading is above the upper caution threshold.", 822 "Voltage '%1' reading of %2 volts is above the %3 upper caution threshold.", 823 "Warning", 824 3, 825 { 826 "string", 827 "number", 828 "number", 829 }, 830 "Check the condition of the resource listed in OriginOfCondition.", 831 }}, 832 MessageEntry{ 833 "VoltageAboveUpperCriticalThreshold", 834 { 835 "Indicates that a voltage reading is above the upper critical threshold.", 836 "Voltage '%1' reading of %2 volts is above the %3 upper critical threshold.", 837 "Critical", 838 3, 839 { 840 "string", 841 "number", 842 "number", 843 }, 844 "Check the condition of the resource listed in OriginOfCondition.", 845 }}, 846 MessageEntry{ 847 "VoltageAboveUpperFatalThreshold", 848 { 849 "Indicates that a voltage reading is above the upper fatal threshold.", 850 "Voltage '%1' reading of %2 volts is above the %3 upper fatal threshold.", 851 "Critical", 852 3, 853 { 854 "string", 855 "number", 856 "number", 857 }, 858 "Check the condition of the resource listed in OriginOfCondition.", 859 }}, 860 MessageEntry{ 861 "VoltageBelowLowerCautionThreshold", 862 { 863 "Indicates that a voltage reading is below the lower caution threshold.", 864 "Voltage '%1' reading of %2 volts is below the %3 lower caution threshold.", 865 "Warning", 866 3, 867 { 868 "string", 869 "number", 870 "number", 871 }, 872 "Check the condition of the resource listed in OriginOfCondition.", 873 }}, 874 MessageEntry{ 875 "VoltageBelowLowerCriticalThreshold", 876 { 877 "Indicates that a voltage reading is below the lower critical threshold.", 878 "Voltage '%1' reading of %2 volts is below the %3 lower critical threshold.", 879 "Critical", 880 3, 881 { 882 "string", 883 "number", 884 "number", 885 }, 886 "Check the condition of the resource listed in OriginOfCondition.", 887 }}, 888 MessageEntry{ 889 "VoltageBelowLowerFatalThreshold", 890 { 891 "Indicates that a voltage reading is below the lower fatal threshold.", 892 "Voltage '%1' reading of %2 volts is below the %3 lower fatal threshold.", 893 "Critical", 894 3, 895 { 896 "string", 897 "number", 898 "number", 899 }, 900 "Check the condition of the resource listed in OriginOfCondition.", 901 }}, 902 MessageEntry{ 903 "VoltageBelowUpperCriticalThreshold", 904 { 905 "Indicates that a voltage reading is no longer above the upper critical threshold but is still outside of normal operating range.", 906 "Voltage '%1' reading of %2 volts is now below the %3 upper critical threshold but remains outside of normal range.", 907 "Warning", 908 3, 909 { 910 "string", 911 "number", 912 "number", 913 }, 914 "Check the condition of the resource listed in OriginOfCondition.", 915 }}, 916 MessageEntry{ 917 "VoltageBelowUpperFatalThreshold", 918 { 919 "Indicates that a voltage reading is no longer above the upper fatal threshold but is still outside of normal operating range.", 920 "Voltage '%1' reading of %2 volts is now below the %3 upper fatal threshold but remains outside of normal range.", 921 "Critical", 922 3, 923 { 924 "string", 925 "number", 926 "number", 927 }, 928 "Check the condition of the resource listed in OriginOfCondition.", 929 }}, 930 MessageEntry{ 931 "VoltageCritical", 932 { 933 "Indicates that a voltage reading exceeds an internal critical level.", 934 "Voltage '%1' reading of %2 volts exceeds the critical level.", 935 "Critical", 936 2, 937 { 938 "string", 939 "number", 940 }, 941 "Check the condition of the resource listed in OriginOfCondition.", 942 }}, 943 MessageEntry{ 944 "VoltageNoLongerCritical", 945 { 946 "Indicates that a voltage reading no longer exceeds an internal critical level but still exceeds an internal warning level.", 947 "Voltage '%1' reading of %2 volts no longer exceeds the critical level.", 948 "Warning", 949 2, 950 { 951 "string", 952 "number", 953 }, 954 "Check the condition of the resource listed in OriginOfCondition.", 955 }}, 956 MessageEntry{ 957 "VoltageNormal", 958 { 959 "Indicates that a voltage reading is now within normal operating range.", 960 "Voltage '%1' reading of %2 volts is within normal operating range.", 961 "OK", 962 2, 963 { 964 "string", 965 "number", 966 }, 967 "None.", 968 }}, 969 MessageEntry{ 970 "VoltageWarning", 971 { 972 "Indicates that a voltage reading exceeds an internal warning level.", 973 "Voltage '%1' reading of %2 volts exceeds the warning level.", 974 "Warning", 975 2, 976 { 977 "string", 978 "number", 979 }, 980 "Check the condition of the resource listed in OriginOfCondition.", 981 }}, 982 983 }; 984 985 enum class Index 986 { 987 breakerFault = 0, 988 breakerReset = 1, 989 breakerTripped = 2, 990 circuitPoweredOff = 3, 991 circuitPoweredOn = 4, 992 currentAboveLowerCriticalThreshold = 5, 993 currentAboveLowerFatalThreshold = 6, 994 currentAboveUpperCautionThreshold = 7, 995 currentAboveUpperCriticalThreshold = 8, 996 currentAboveUpperFatalThreshold = 9, 997 currentBelowLowerCautionThreshold = 10, 998 currentBelowLowerCriticalThreshold = 11, 999 currentBelowLowerFatalThreshold = 12, 1000 currentBelowUpperCriticalThreshold = 13, 1001 currentBelowUpperFatalThreshold = 14, 1002 currentCritical = 15, 1003 currentNoLongerCritical = 16, 1004 currentNormal = 17, 1005 currentWarning = 18, 1006 frequencyAboveLowerCriticalThreshold = 19, 1007 frequencyAboveUpperCautionThreshold = 20, 1008 frequencyAboveUpperCriticalThreshold = 21, 1009 frequencyBelowLowerCautionThreshold = 22, 1010 frequencyBelowLowerCriticalThreshold = 23, 1011 frequencyBelowUpperCriticalThreshold = 24, 1012 frequencyCritical = 25, 1013 frequencyNoLongerCritical = 26, 1014 frequencyNormal = 27, 1015 frequencyWarning = 28, 1016 lineInputPowerFault = 29, 1017 lineInputPowerRestored = 30, 1018 lossOfInputPower = 31, 1019 outletPoweredOff = 32, 1020 outletPoweredOn = 33, 1021 powerAboveLowerCriticalThreshold = 34, 1022 powerAboveLowerFatalThreshold = 35, 1023 powerAboveUpperCautionThreshold = 36, 1024 powerAboveUpperCriticalThreshold = 37, 1025 powerAboveUpperFatalThreshold = 38, 1026 powerBelowLowerCautionThreshold = 39, 1027 powerBelowLowerCriticalThreshold = 40, 1028 powerBelowLowerFatalThreshold = 41, 1029 powerBelowUpperCriticalThreshold = 42, 1030 powerBelowUpperFatalThreshold = 43, 1031 powerCritical = 44, 1032 powerNoLongerCritical = 45, 1033 powerNormal = 46, 1034 powerSupplyFailed = 47, 1035 powerSupplyGroupCritical = 48, 1036 powerSupplyGroupNormal = 49, 1037 powerSupplyGroupWarning = 50, 1038 powerSupplyInserted = 51, 1039 powerSupplyPredictiveFailure = 52, 1040 powerSupplyRemoved = 53, 1041 powerSupplyRestored = 54, 1042 powerSupplyWarning = 55, 1043 powerWarning = 56, 1044 voltageAboveLowerCriticalThreshold = 57, 1045 voltageAboveLowerFatalThreshold = 58, 1046 voltageAboveUpperCautionThreshold = 59, 1047 voltageAboveUpperCriticalThreshold = 60, 1048 voltageAboveUpperFatalThreshold = 61, 1049 voltageBelowLowerCautionThreshold = 62, 1050 voltageBelowLowerCriticalThreshold = 63, 1051 voltageBelowLowerFatalThreshold = 64, 1052 voltageBelowUpperCriticalThreshold = 65, 1053 voltageBelowUpperFatalThreshold = 66, 1054 voltageCritical = 67, 1055 voltageNoLongerCritical = 68, 1056 voltageNormal = 69, 1057 voltageWarning = 70, 1058 }; 1059 }; // struct power 1060 1061 [[gnu::constructor]] inline void registerPower() 1062 { registerRegistry<Power>(); } 1063 1064 } // namespace redfish::registries 1065