1 /*
2 // Copyright (c) 2020 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
16 /****************************************************************
17  * This is an auto-generated header which contains definitions
18  * for Redfish DMTF defined messages.
19  ***************************************************************/
20 #pragma once
21 #include <registries.hpp>
22 
23 namespace redfish::message_registries::resource_event
24 {
25 const Header header = {
26     "Copyright 2014-2020 DMTF in cooperation with the Storage Networking "
27     "Industry Association (SNIA). All rights reserved.",
28     "#MessageRegistry.v1_4_0.MessageRegistry",
29     "ResourceEvent.1.0.3",
30     "Resource Event Message Registry",
31     "en",
32     "This registry defines the messages to use for resource events.",
33     "ResourceEvent",
34     "1.0.3",
35     "DMTF",
36 };
37 constexpr const char* url =
38     "https://redfish.dmtf.org/registries/ResourceEvent.1.0.3.json";
39 
40 constexpr std::array<MessageEntry, 19> registry = {
41     MessageEntry{"LicenseAdded",
42                  {
43                      "Indicates that a license has been added.",
44                      "A license for '%1' has been added.  The following "
45                      "message was returned: '%2'.",
46                      "OK",
47                      "OK",
48                      2,
49                      {
50                          "string",
51                          "string",
52                      },
53                      "See vendor specific instructions for specific actions.",
54                  }},
55     MessageEntry{"LicenseChanged",
56                  {
57                      "Indicates that a license has changed.",
58                      "A license for '%1' has changed.  The following message "
59                      "was returned: '%2'.",
60                      "Warning",
61                      "Warning",
62                      2,
63                      {
64                          "string",
65                          "string",
66                      },
67                      "See vendor specific instructions for specific actions.",
68                  }},
69     MessageEntry{"LicenseExpired",
70                  {
71                      "Indicates that a license has expired.",
72                      "A license for '%1' has expired.  The following message "
73                      "was returned: '%2'.",
74                      "Warning",
75                      "Warning",
76                      2,
77                      {
78                          "string",
79                          "string",
80                      },
81                      "See vendor specific instructions for specific actions.",
82                  }},
83     MessageEntry{
84         "ResourceChanged",
85         {
86             "Indicates that one or more resource properties have changed.  "
87             "This is not used whenever there is another event message for that "
88             "specific change, such as only the state has changed.",
89             "One or more resource properties have changed.",
90             "OK",
91             "OK",
92             0,
93             {},
94             "None.",
95         }},
96     MessageEntry{"ResourceCreated",
97                  {
98                      "Indicates that all conditions of a successful creation "
99                      "operation have been met.",
100                      "The resource has been created successfully.",
101                      "OK",
102                      "OK",
103                      0,
104                      {},
105                      "None",
106                  }},
107     MessageEntry{"ResourceErrorThresholdCleared",
108                  {
109                      "Indicates that a specified resource property has cleared "
110                      "its error threshold.  Examples would be drive I/O "
111                      "errors, or network link errors.",
112                      "The resource property %1 has cleared the error threshold "
113                      "of value %2.",
114                      "OK",
115                      "OK",
116                      2,
117                      {
118                          "string",
119                          "number",
120                      },
121                      "None.",
122                  }},
123     MessageEntry{"ResourceErrorThresholdExceeded",
124                  {
125                      "Indicates that a specified resource property has "
126                      "exceeded its error threshold.  Examples would be drive "
127                      "I/O errors, or network link errors.",
128                      "The resource property %1 has exceeded error threshold of "
129                      "value %2.",
130                      "Critical",
131                      "Critical",
132                      2,
133                      {
134                          "string",
135                          "number",
136                      },
137                      "None.",
138                  }},
139     MessageEntry{
140         "ResourceErrorsCorrected",
141         {
142             "Indicates that a specified resource property has corrected "
143             "errors.  Examples would be drive I/O errors, or network link "
144             "errors.",
145             "The resource property %1 has corrected errors of type '%2'.",
146             "OK",
147             "OK",
148             2,
149             {
150                 "string",
151                 "string",
152             },
153             "None.",
154         }},
155     MessageEntry{
156         "ResourceErrorsDetected",
157         {
158             "Indicates that a specified resource property has detected errors. "
159             " Examples would be drive I/O errors, or network link errors.",
160             "The resource property %1 has detected errors of type '%2'.",
161             "Warning",
162             "Warning",
163             2,
164             {
165                 "string",
166                 "string",
167             },
168             "Resolution dependent upon error type.",
169         }},
170     MessageEntry{"ResourceRemoved",
171                  {
172                      "Indicates that all conditions of a successful remove "
173                      "operation have been met.",
174                      "The resource has been removed successfully.",
175                      "OK",
176                      "OK",
177                      0,
178                      {},
179                      "None",
180                  }},
181     MessageEntry{"ResourceSelfTestCompleted",
182                  {
183                      "Indicates that a self-test has completed.",
184                      "A self-test has completed.",
185                      "OK",
186                      "OK",
187                      0,
188                      {},
189                      "None.",
190                  }},
191     MessageEntry{"ResourceSelfTestFailed",
192                  {
193                      "Indicates that a self-test has failed.  Suggested "
194                      "resolution may be provided as OEM data.",
195                      "A self-test has failed.  The following message was "
196                      "returned: '%1'.",
197                      "Critical",
198                      "Critical",
199                      1,
200                      {
201                          "string",
202                      },
203                      "See vendor specific instructions for specific actions.",
204                  }},
205     MessageEntry{
206         "ResourceStatusChangedCritical",
207         {
208             "Indicates that the health of a resource has changed to Critical.",
209             "The health of resource `%1` has changed to %2.",
210             "Critical",
211             "Critical",
212             2,
213             {
214                 "string",
215                 "string",
216             },
217             "None.",
218         }},
219     MessageEntry{
220         "ResourceStatusChangedOK",
221         {
222             "Indicates that the health of a resource has changed to OK.",
223             "The health of resource '%1' has changed to %2.",
224             "OK",
225             "OK",
226             2,
227             {
228                 "string",
229                 "string",
230             },
231             "None.",
232         }},
233     MessageEntry{
234         "ResourceStatusChangedWarning",
235         {
236             "Indicates that the health of a resource has changed to Warning.",
237             "The health of resource `%1` has changed to %2.",
238             "Warning",
239             "Warning",
240             2,
241             {
242                 "string",
243                 "string",
244             },
245             "None.",
246         }},
247     MessageEntry{
248         "ResourceVersionIncompatible",
249         {
250             "Indicates that an incompatible version of software has been "
251             "detected.  Examples may be after a component or system level "
252             "software update.",
253             "An incompatible version of software '%1' has been detected.",
254             "Warning",
255             "Warning",
256             1,
257             {
258                 "string",
259             },
260             "Compare the version of the resource with the compatible version "
261             "of the software.",
262         }},
263     MessageEntry{"ResourceWarningThresholdCleared",
264                  {
265                      "Indicates that a specified resource property has cleared "
266                      "its warning threshold.  Examples would be drive I/O "
267                      "errors, or network link errors.  Suggested resolution "
268                      "may be provided as OEM data.",
269                      "The resource property %1 has cleared the warning "
270                      "threshold of value %2.",
271                      "OK",
272                      "OK",
273                      2,
274                      {
275                          "string",
276                          "number",
277                      },
278                      "None.",
279                  }},
280     MessageEntry{"ResourceWarningThresholdExceeded",
281                  {
282                      "Indicates that a specified resource property has "
283                      "exceeded its warning threshold.  Examples would be drive "
284                      "I/O errors, or network link errors.  Suggested "
285                      "resolution may be provided as OEM data.",
286                      "The resource property %1 has exceeded its warning "
287                      "threshold of value %2.",
288                      "Warning",
289                      "Warning",
290                      2,
291                      {
292                          "string",
293                          "number",
294                      },
295                      "None.",
296                  }},
297     MessageEntry{
298         "URIForResourceChanged",
299         {
300             "Indicates that the URI for a resource has changed.  Examples for "
301             "this would be physical component replacement or redistribution.",
302             "The URI for the resource has changed.",
303             "OK",
304             "OK",
305             0,
306             {},
307             "None.",
308         }},
309 };
310 } // namespace redfish::message_registries::resource_event
311