1665e7602SGunnar Mills #pragma once 2665e7602SGunnar Mills /**************************************************************** 3665e7602SGunnar Mills * READ THIS WARNING FIRST 4665e7602SGunnar Mills * This is an auto-generated header which contains definitions 5665e7602SGunnar Mills * for Redfish DMTF defined messages. 6665e7602SGunnar Mills * DO NOT modify this registry outside of running the 7665e7602SGunnar Mills * parse_registries.py script. The definitions contained within 8665e7602SGunnar Mills * this file are owned by DMTF. Any modifications to these files 9665e7602SGunnar Mills * should be first pushed to the relevant registry in the DMTF 10665e7602SGunnar Mills * github organization. 11665e7602SGunnar Mills ***************************************************************/ 12665e7602SGunnar Mills #include "registries.hpp" 13665e7602SGunnar Mills 14665e7602SGunnar Mills #include <array> 15665e7602SGunnar Mills 16665e7602SGunnar Mills // clang-format off 17665e7602SGunnar Mills 18665e7602SGunnar Mills namespace redfish::registries::telemetry 19665e7602SGunnar Mills { 20665e7602SGunnar Mills const Header header = { 21665e7602SGunnar Mills "Copyright 2023 DMTF. All rights reserved.", 22665e7602SGunnar Mills "#MessageRegistry.v1_6_2.MessageRegistry", 23*56b81992SEd Tanous 1, 24*56b81992SEd Tanous 0, 25*56b81992SEd Tanous 0, 26665e7602SGunnar Mills "Telemetry Message Registry", 27665e7602SGunnar Mills "en", 28665e7602SGunnar Mills "This registry defines the messages for telemetry related events.", 29665e7602SGunnar Mills "Telemetry", 30665e7602SGunnar Mills "DMTF", 31665e7602SGunnar Mills }; 32665e7602SGunnar Mills constexpr const char* url = 33665e7602SGunnar Mills "https://redfish.dmtf.org/registries/Telemetry.1.0.0.json"; 34665e7602SGunnar Mills 35665e7602SGunnar Mills constexpr std::array registry = 36665e7602SGunnar Mills { 37665e7602SGunnar Mills MessageEntry{ 38665e7602SGunnar Mills "TriggerDiscreteConditionMet", 39665e7602SGunnar Mills { 40665e7602SGunnar Mills "Indicates that a discrete trigger condition is met.", 41665e7602SGunnar Mills "Metric '%1' has the value '%2', which meets the discrete condition of trigger '%3'", 42665e7602SGunnar Mills "OK", 43665e7602SGunnar Mills 3, 44665e7602SGunnar Mills { 45665e7602SGunnar Mills "string", 46665e7602SGunnar Mills "string", 47665e7602SGunnar Mills "string", 48665e7602SGunnar Mills }, 49665e7602SGunnar Mills "Check the condition of the metric that reported the trigger.", 50665e7602SGunnar Mills }}, 51665e7602SGunnar Mills MessageEntry{ 52665e7602SGunnar Mills "TriggerNumericAboveLowerCritical", 53665e7602SGunnar Mills { 54665e7602SGunnar Mills "Indicates that a numeric metric reading is no longer below the lower critical trigger threshold, but is still outside of normal operating range.", 55665e7602SGunnar Mills "Metric '%1' value of %2 is now above the %3 lower critical threshold of trigger '%4' but remains outside of normal range", 56665e7602SGunnar Mills "Warning", 57665e7602SGunnar Mills 4, 58665e7602SGunnar Mills { 59665e7602SGunnar Mills "string", 60665e7602SGunnar Mills "number", 61665e7602SGunnar Mills "number", 62665e7602SGunnar Mills "string", 63665e7602SGunnar Mills }, 64665e7602SGunnar Mills "Check the condition of the metric that reported the trigger.", 65665e7602SGunnar Mills }}, 66665e7602SGunnar Mills MessageEntry{ 67665e7602SGunnar Mills "TriggerNumericAboveUpperCritical", 68665e7602SGunnar Mills { 69665e7602SGunnar Mills "Indicates that a numeric metric reading is above the upper critical trigger threshold.", 70665e7602SGunnar Mills "Metric '%1' value of %2 is above the %3 upper critical threshold of trigger '%4'", 71665e7602SGunnar Mills "Critical", 72665e7602SGunnar Mills 4, 73665e7602SGunnar Mills { 74665e7602SGunnar Mills "string", 75665e7602SGunnar Mills "number", 76665e7602SGunnar Mills "number", 77665e7602SGunnar Mills "string", 78665e7602SGunnar Mills }, 79665e7602SGunnar Mills "Check the condition of the metric that reported the trigger.", 80665e7602SGunnar Mills }}, 81665e7602SGunnar Mills MessageEntry{ 82665e7602SGunnar Mills "TriggerNumericAboveUpperWarning", 83665e7602SGunnar Mills { 84665e7602SGunnar Mills "Indicates that a numeric metric reading is above the upper warning trigger threshold.", 85665e7602SGunnar Mills "Metric '%1' value of %2 is above the %3 upper warning threshold of trigger '%4'", 86665e7602SGunnar Mills "Warning", 87665e7602SGunnar Mills 4, 88665e7602SGunnar Mills { 89665e7602SGunnar Mills "string", 90665e7602SGunnar Mills "number", 91665e7602SGunnar Mills "number", 92665e7602SGunnar Mills "string", 93665e7602SGunnar Mills }, 94665e7602SGunnar Mills "Check the condition of the metric that reported the trigger.", 95665e7602SGunnar Mills }}, 96665e7602SGunnar Mills MessageEntry{ 97665e7602SGunnar Mills "TriggerNumericBelowLowerCritical", 98665e7602SGunnar Mills { 99665e7602SGunnar Mills "Indicates that a numeric metric reading is below the lower critical trigger threshold.", 100665e7602SGunnar Mills "Metric '%1' value of %2 is below the %3 lower critical threshold of trigger '%4'", 101665e7602SGunnar Mills "Critical", 102665e7602SGunnar Mills 4, 103665e7602SGunnar Mills { 104665e7602SGunnar Mills "string", 105665e7602SGunnar Mills "number", 106665e7602SGunnar Mills "number", 107665e7602SGunnar Mills "string", 108665e7602SGunnar Mills }, 109665e7602SGunnar Mills "Check the condition of the metric that reported the trigger.", 110665e7602SGunnar Mills }}, 111665e7602SGunnar Mills MessageEntry{ 112665e7602SGunnar Mills "TriggerNumericBelowLowerWarning", 113665e7602SGunnar Mills { 114665e7602SGunnar Mills "Indicates that a numeric metric reading is below the lower warning trigger threshold.", 115665e7602SGunnar Mills "Metric '%1' value of %2 is below the %3 lower warning threshold of trigger '%4'", 116665e7602SGunnar Mills "Warning", 117665e7602SGunnar Mills 4, 118665e7602SGunnar Mills { 119665e7602SGunnar Mills "string", 120665e7602SGunnar Mills "number", 121665e7602SGunnar Mills "number", 122665e7602SGunnar Mills "string", 123665e7602SGunnar Mills }, 124665e7602SGunnar Mills "Check the condition of the metric that reported the trigger.", 125665e7602SGunnar Mills }}, 126665e7602SGunnar Mills MessageEntry{ 127665e7602SGunnar Mills "TriggerNumericBelowUpperCritical", 128665e7602SGunnar Mills { 129665e7602SGunnar Mills "Indicates that a numeric metric reading is no longer above the upper critical trigger threshold, but is still outside of normal operating range.", 130665e7602SGunnar Mills "Metric '%1' value of %2 is now below the %3 upper critical threshold of trigger '%4' but remains outside of normal range", 131665e7602SGunnar Mills "Warning", 132665e7602SGunnar Mills 4, 133665e7602SGunnar Mills { 134665e7602SGunnar Mills "string", 135665e7602SGunnar Mills "number", 136665e7602SGunnar Mills "number", 137665e7602SGunnar Mills "string", 138665e7602SGunnar Mills }, 139665e7602SGunnar Mills "Check the condition of the metric that reported the trigger.", 140665e7602SGunnar Mills }}, 141665e7602SGunnar Mills MessageEntry{ 142665e7602SGunnar Mills "TriggerNumericReadingNormal", 143665e7602SGunnar Mills { 144665e7602SGunnar Mills "Indicates that a numeric metric reading is now within normal operating range.", 145665e7602SGunnar Mills "Metric '%1' value of %2 is within normal operating range of trigger '%3'", 146665e7602SGunnar Mills "OK", 147665e7602SGunnar Mills 3, 148665e7602SGunnar Mills { 149665e7602SGunnar Mills "string", 150665e7602SGunnar Mills "number", 151665e7602SGunnar Mills "string", 152665e7602SGunnar Mills }, 153665e7602SGunnar Mills "None.", 154665e7602SGunnar Mills }}, 155665e7602SGunnar Mills 156665e7602SGunnar Mills }; 157665e7602SGunnar Mills 158665e7602SGunnar Mills enum class Index 159665e7602SGunnar Mills { 160665e7602SGunnar Mills triggerDiscreteConditionMet = 0, 161665e7602SGunnar Mills triggerNumericAboveLowerCritical = 1, 162665e7602SGunnar Mills triggerNumericAboveUpperCritical = 2, 163665e7602SGunnar Mills triggerNumericAboveUpperWarning = 3, 164665e7602SGunnar Mills triggerNumericBelowLowerCritical = 4, 165665e7602SGunnar Mills triggerNumericBelowLowerWarning = 5, 166665e7602SGunnar Mills triggerNumericBelowUpperCritical = 6, 167665e7602SGunnar Mills triggerNumericReadingNormal = 7, 168665e7602SGunnar Mills }; 169665e7602SGunnar Mills } // namespace redfish::registries::telemetry 170