1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
/****************************************************************
* READ THIS WARNING FIRST
* This is an auto-generated header which contains definitions
* for Redfish DMTF defined messages.
* DO NOT modify this registry outside of running the
* parse_registries.py script. The definitions contained within
* this file are owned by DMTF. Any modifications to these files
* should be first pushed to the relevant registry in the DMTF
* github organization.
***************************************************************/
#include "registries.hpp"
#include <array>
// clang-format off
namespace redfish::registries
{
struct Telemetry
{
static constexpr Header header = {
"Copyright 2023 DMTF. All rights reserved.",
"#MessageRegistry.v1_6_2.MessageRegistry",
1,
0,
0,
"Telemetry Message Registry",
"en",
"This registry defines the messages for telemetry related events.",
"Telemetry",
"DMTF",
};
static constexpr const char* url =
"https://redfish.dmtf.org/registries/Telemetry.1.0.0.json";
static constexpr std::array registry =
{
MessageEntry{
"TriggerDiscreteConditionMet",
{
"Indicates that a discrete trigger condition is met.",
"Metric '%1' has the value '%2', which meets the discrete condition of trigger '%3'",
"OK",
3,
{
"string",
"string",
"string",
},
"Check the condition of the metric that reported the trigger.",
}},
MessageEntry{
"TriggerNumericAboveLowerCritical",
{
"Indicates that a numeric metric reading is no longer below the lower critical trigger threshold, but is still outside of normal operating range.",
"Metric '%1' value of %2 is now above the %3 lower critical threshold of trigger '%4' but remains outside of normal range",
"Warning",
4,
{
"string",
"number",
"number",
"string",
},
"Check the condition of the metric that reported the trigger.",
}},
MessageEntry{
"TriggerNumericAboveUpperCritical",
{
"Indicates that a numeric metric reading is above the upper critical trigger threshold.",
"Metric '%1' value of %2 is above the %3 upper critical threshold of trigger '%4'",
"Critical",
4,
{
"string",
"number",
"number",
"string",
},
"Check the condition of the metric that reported the trigger.",
}},
MessageEntry{
"TriggerNumericAboveUpperWarning",
{
"Indicates that a numeric metric reading is above the upper warning trigger threshold.",
"Metric '%1' value of %2 is above the %3 upper warning threshold of trigger '%4'",
"Warning",
4,
{
"string",
"number",
"number",
"string",
},
"Check the condition of the metric that reported the trigger.",
}},
MessageEntry{
"TriggerNumericBelowLowerCritical",
{
"Indicates that a numeric metric reading is below the lower critical trigger threshold.",
"Metric '%1' value of %2 is below the %3 lower critical threshold of trigger '%4'",
"Critical",
4,
{
"string",
"number",
"number",
"string",
},
"Check the condition of the metric that reported the trigger.",
}},
MessageEntry{
"TriggerNumericBelowLowerWarning",
{
"Indicates that a numeric metric reading is below the lower warning trigger threshold.",
"Metric '%1' value of %2 is below the %3 lower warning threshold of trigger '%4'",
"Warning",
4,
{
"string",
"number",
"number",
"string",
},
"Check the condition of the metric that reported the trigger.",
}},
MessageEntry{
"TriggerNumericBelowUpperCritical",
{
"Indicates that a numeric metric reading is no longer above the upper critical trigger threshold, but is still outside of normal operating range.",
"Metric '%1' value of %2 is now below the %3 upper critical threshold of trigger '%4' but remains outside of normal range",
"Warning",
4,
{
"string",
"number",
"number",
"string",
},
"Check the condition of the metric that reported the trigger.",
}},
MessageEntry{
"TriggerNumericReadingNormal",
{
"Indicates that a numeric metric reading is now within normal operating range.",
"Metric '%1' value of %2 is within normal operating range of trigger '%3'",
"OK",
3,
{
"string",
"number",
"string",
},
"None.",
}},
};
enum class Index
{
triggerDiscreteConditionMet = 0,
triggerNumericAboveLowerCritical = 1,
triggerNumericAboveUpperCritical = 2,
triggerNumericAboveUpperWarning = 3,
triggerNumericBelowLowerCritical = 4,
triggerNumericBelowLowerWarning = 5,
triggerNumericBelowUpperCritical = 6,
triggerNumericReadingNormal = 7,
};
}; // struct telemetry
[[gnu::constructor]] inline void registerTelemetry()
{ registerRegistry<Telemetry>(); }
} // namespace redfish::registries
|