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::telemetry 19 { 20 const Header header = { 21 "Copyright 2023 DMTF. All rights reserved.", 22 "#MessageRegistry.v1_6_2.MessageRegistry", 23 1, 24 0, 25 0, 26 "Telemetry Message Registry", 27 "en", 28 "This registry defines the messages for telemetry related events.", 29 "Telemetry", 30 "DMTF", 31 }; 32 constexpr const char* url = 33 "https://redfish.dmtf.org/registries/Telemetry.1.0.0.json"; 34 35 constexpr std::array registry = 36 { 37 MessageEntry{ 38 "TriggerDiscreteConditionMet", 39 { 40 "Indicates that a discrete trigger condition is met.", 41 "Metric '%1' has the value '%2', which meets the discrete condition of trigger '%3'", 42 "OK", 43 3, 44 { 45 "string", 46 "string", 47 "string", 48 }, 49 "Check the condition of the metric that reported the trigger.", 50 }}, 51 MessageEntry{ 52 "TriggerNumericAboveLowerCritical", 53 { 54 "Indicates that a numeric metric reading is no longer below the lower critical trigger threshold, but is still outside of normal operating range.", 55 "Metric '%1' value of %2 is now above the %3 lower critical threshold of trigger '%4' but remains outside of normal range", 56 "Warning", 57 4, 58 { 59 "string", 60 "number", 61 "number", 62 "string", 63 }, 64 "Check the condition of the metric that reported the trigger.", 65 }}, 66 MessageEntry{ 67 "TriggerNumericAboveUpperCritical", 68 { 69 "Indicates that a numeric metric reading is above the upper critical trigger threshold.", 70 "Metric '%1' value of %2 is above the %3 upper critical threshold of trigger '%4'", 71 "Critical", 72 4, 73 { 74 "string", 75 "number", 76 "number", 77 "string", 78 }, 79 "Check the condition of the metric that reported the trigger.", 80 }}, 81 MessageEntry{ 82 "TriggerNumericAboveUpperWarning", 83 { 84 "Indicates that a numeric metric reading is above the upper warning trigger threshold.", 85 "Metric '%1' value of %2 is above the %3 upper warning threshold of trigger '%4'", 86 "Warning", 87 4, 88 { 89 "string", 90 "number", 91 "number", 92 "string", 93 }, 94 "Check the condition of the metric that reported the trigger.", 95 }}, 96 MessageEntry{ 97 "TriggerNumericBelowLowerCritical", 98 { 99 "Indicates that a numeric metric reading is below the lower critical trigger threshold.", 100 "Metric '%1' value of %2 is below the %3 lower critical threshold of trigger '%4'", 101 "Critical", 102 4, 103 { 104 "string", 105 "number", 106 "number", 107 "string", 108 }, 109 "Check the condition of the metric that reported the trigger.", 110 }}, 111 MessageEntry{ 112 "TriggerNumericBelowLowerWarning", 113 { 114 "Indicates that a numeric metric reading is below the lower warning trigger threshold.", 115 "Metric '%1' value of %2 is below the %3 lower warning threshold of trigger '%4'", 116 "Warning", 117 4, 118 { 119 "string", 120 "number", 121 "number", 122 "string", 123 }, 124 "Check the condition of the metric that reported the trigger.", 125 }}, 126 MessageEntry{ 127 "TriggerNumericBelowUpperCritical", 128 { 129 "Indicates that a numeric metric reading is no longer above the upper critical trigger threshold, but is still outside of normal operating range.", 130 "Metric '%1' value of %2 is now below the %3 upper critical threshold of trigger '%4' but remains outside of normal range", 131 "Warning", 132 4, 133 { 134 "string", 135 "number", 136 "number", 137 "string", 138 }, 139 "Check the condition of the metric that reported the trigger.", 140 }}, 141 MessageEntry{ 142 "TriggerNumericReadingNormal", 143 { 144 "Indicates that a numeric metric reading is now within normal operating range.", 145 "Metric '%1' value of %2 is within normal operating range of trigger '%3'", 146 "OK", 147 3, 148 { 149 "string", 150 "number", 151 "string", 152 }, 153 "None.", 154 }}, 155 156 }; 157 158 enum class Index 159 { 160 triggerDiscreteConditionMet = 0, 161 triggerNumericAboveLowerCritical = 1, 162 triggerNumericAboveUpperCritical = 2, 163 triggerNumericAboveUpperWarning = 3, 164 triggerNumericBelowLowerCritical = 4, 165 triggerNumericBelowLowerWarning = 5, 166 triggerNumericBelowUpperCritical = 6, 167 triggerNumericReadingNormal = 7, 168 }; 169 } // namespace redfish::registries::telemetry 170