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