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
|
// 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 Platform
{
static constexpr Header header = {
"Copyright 2023 DMTF. All rights reserved.",
"#MessageRegistry.v1_6_2.MessageRegistry",
1,
0,
1,
"Compute Platform Message Registry",
"en",
"This registry defines messages for compute platforms, covering topics related to processor, memory, and I/O device connectivity.",
"Platform",
"DMTF",
};
static constexpr const char* url =
"https://redfish.dmtf.org/registries/Platform.1.0.1.json";
static constexpr std::array registry =
{
MessageEntry{
"OperatingSystemCrash",
{
"Indicates the operating system was halted due to a catastrophic error.",
"An operating system crash occurred.",
"Critical",
0,
{},
"Check additional diagnostic data if available.",
}},
MessageEntry{
"PlatformError",
{
"Indicates that a platform error occurred.",
"A platform error occurred.",
"Warning",
0,
{},
"Check additional diagnostic data if available.",
}},
MessageEntry{
"PlatformErrorAtLocation",
{
"Indicates that a platform error occurred and device or other location information is available.",
"A platform error occurred at location '%1'.",
"Warning",
1,
{
"string",
},
"Check additional diagnostic data if available.",
}},
MessageEntry{
"UnhandledExceptionDetectedAfterReset",
{
"Indicates that an unhandled exception caused the platform to reset.",
"An unhandled exception caused a platform reset.",
"Critical",
0,
{},
"Check additional diagnostic data if available.",
}},
};
enum class Index
{
operatingSystemCrash = 0,
platformError = 1,
platformErrorAtLocation = 2,
unhandledExceptionDetectedAfterReset = 3,
};
}; // struct platform
[[gnu::constructor]] inline void registerPlatform()
{ registerRegistry<Platform>(); }
} // namespace redfish::registries
|