xref: /openbmc/bmcweb/features/redfish/include/generated/enums/log_service.hpp (revision e9cc1bc93c4ad9662c93e2a98d4c787e2dbf9f07)
10ec8b83dSEd Tanous #pragma once
20ec8b83dSEd Tanous #include <nlohmann/json.hpp>
30ec8b83dSEd Tanous 
40ec8b83dSEd Tanous namespace log_service
50ec8b83dSEd Tanous {
60ec8b83dSEd Tanous // clang-format off
70ec8b83dSEd Tanous 
80ec8b83dSEd Tanous enum class OverWritePolicy{
90ec8b83dSEd Tanous     Invalid,
100ec8b83dSEd Tanous     Unknown,
110ec8b83dSEd Tanous     WrapsWhenFull,
120ec8b83dSEd Tanous     NeverOverWrites,
130ec8b83dSEd Tanous };
140ec8b83dSEd Tanous 
150ec8b83dSEd Tanous enum class LogEntryTypes{
160ec8b83dSEd Tanous     Invalid,
170ec8b83dSEd Tanous     Event,
180ec8b83dSEd Tanous     SEL,
190ec8b83dSEd Tanous     Multiple,
200ec8b83dSEd Tanous     OEM,
21*e9cc1bc9SEd Tanous     CXL,
220ec8b83dSEd Tanous };
230ec8b83dSEd Tanous 
240ec8b83dSEd Tanous enum class SyslogSeverity{
250ec8b83dSEd Tanous     Invalid,
260ec8b83dSEd Tanous     Emergency,
270ec8b83dSEd Tanous     Alert,
280ec8b83dSEd Tanous     Critical,
290ec8b83dSEd Tanous     Error,
300ec8b83dSEd Tanous     Warning,
310ec8b83dSEd Tanous     Notice,
320ec8b83dSEd Tanous     Informational,
330ec8b83dSEd Tanous     Debug,
340ec8b83dSEd Tanous     All,
350ec8b83dSEd Tanous };
360ec8b83dSEd Tanous 
370ec8b83dSEd Tanous enum class SyslogFacility{
380ec8b83dSEd Tanous     Invalid,
390ec8b83dSEd Tanous     Kern,
400ec8b83dSEd Tanous     User,
410ec8b83dSEd Tanous     Mail,
420ec8b83dSEd Tanous     Daemon,
430ec8b83dSEd Tanous     Auth,
440ec8b83dSEd Tanous     Syslog,
450ec8b83dSEd Tanous     LPR,
460ec8b83dSEd Tanous     News,
470ec8b83dSEd Tanous     UUCP,
480ec8b83dSEd Tanous     Cron,
490ec8b83dSEd Tanous     Authpriv,
500ec8b83dSEd Tanous     FTP,
510ec8b83dSEd Tanous     NTP,
520ec8b83dSEd Tanous     Security,
530ec8b83dSEd Tanous     Console,
540ec8b83dSEd Tanous     SolarisCron,
550ec8b83dSEd Tanous     Local0,
560ec8b83dSEd Tanous     Local1,
570ec8b83dSEd Tanous     Local2,
580ec8b83dSEd Tanous     Local3,
590ec8b83dSEd Tanous     Local4,
600ec8b83dSEd Tanous     Local5,
610ec8b83dSEd Tanous     Local6,
620ec8b83dSEd Tanous     Local7,
630ec8b83dSEd Tanous };
640ec8b83dSEd Tanous 
650ec8b83dSEd Tanous enum class LogDiagnosticDataTypes{
660ec8b83dSEd Tanous     Invalid,
670ec8b83dSEd Tanous     Manager,
680ec8b83dSEd Tanous     PreOS,
690ec8b83dSEd Tanous     OS,
700ec8b83dSEd Tanous     OEM,
710ec8b83dSEd Tanous };
720ec8b83dSEd Tanous 
73a8d8f9d8SEd Tanous enum class LogPurpose{
74a8d8f9d8SEd Tanous     Invalid,
75a8d8f9d8SEd Tanous     Diagnostic,
76a8d8f9d8SEd Tanous     Operations,
77a8d8f9d8SEd Tanous     Security,
78a8d8f9d8SEd Tanous     Telemetry,
79a8d8f9d8SEd Tanous     ExternalEntity,
80a8d8f9d8SEd Tanous     OEM,
81a8d8f9d8SEd Tanous };
82a8d8f9d8SEd Tanous 
830ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(OverWritePolicy, {
840ec8b83dSEd Tanous     {OverWritePolicy::Invalid, "Invalid"},
850ec8b83dSEd Tanous     {OverWritePolicy::Unknown, "Unknown"},
860ec8b83dSEd Tanous     {OverWritePolicy::WrapsWhenFull, "WrapsWhenFull"},
870ec8b83dSEd Tanous     {OverWritePolicy::NeverOverWrites, "NeverOverWrites"},
880ec8b83dSEd Tanous });
890ec8b83dSEd Tanous 
900ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(LogEntryTypes, {
910ec8b83dSEd Tanous     {LogEntryTypes::Invalid, "Invalid"},
920ec8b83dSEd Tanous     {LogEntryTypes::Event, "Event"},
930ec8b83dSEd Tanous     {LogEntryTypes::SEL, "SEL"},
940ec8b83dSEd Tanous     {LogEntryTypes::Multiple, "Multiple"},
950ec8b83dSEd Tanous     {LogEntryTypes::OEM, "OEM"},
96*e9cc1bc9SEd Tanous     {LogEntryTypes::CXL, "CXL"},
970ec8b83dSEd Tanous });
980ec8b83dSEd Tanous 
990ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(SyslogSeverity, {
1000ec8b83dSEd Tanous     {SyslogSeverity::Invalid, "Invalid"},
1010ec8b83dSEd Tanous     {SyslogSeverity::Emergency, "Emergency"},
1020ec8b83dSEd Tanous     {SyslogSeverity::Alert, "Alert"},
1030ec8b83dSEd Tanous     {SyslogSeverity::Critical, "Critical"},
1040ec8b83dSEd Tanous     {SyslogSeverity::Error, "Error"},
1050ec8b83dSEd Tanous     {SyslogSeverity::Warning, "Warning"},
1060ec8b83dSEd Tanous     {SyslogSeverity::Notice, "Notice"},
1070ec8b83dSEd Tanous     {SyslogSeverity::Informational, "Informational"},
1080ec8b83dSEd Tanous     {SyslogSeverity::Debug, "Debug"},
1090ec8b83dSEd Tanous     {SyslogSeverity::All, "All"},
1100ec8b83dSEd Tanous });
1110ec8b83dSEd Tanous 
1120ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(SyslogFacility, {
1130ec8b83dSEd Tanous     {SyslogFacility::Invalid, "Invalid"},
1140ec8b83dSEd Tanous     {SyslogFacility::Kern, "Kern"},
1150ec8b83dSEd Tanous     {SyslogFacility::User, "User"},
1160ec8b83dSEd Tanous     {SyslogFacility::Mail, "Mail"},
1170ec8b83dSEd Tanous     {SyslogFacility::Daemon, "Daemon"},
1180ec8b83dSEd Tanous     {SyslogFacility::Auth, "Auth"},
1190ec8b83dSEd Tanous     {SyslogFacility::Syslog, "Syslog"},
1200ec8b83dSEd Tanous     {SyslogFacility::LPR, "LPR"},
1210ec8b83dSEd Tanous     {SyslogFacility::News, "News"},
1220ec8b83dSEd Tanous     {SyslogFacility::UUCP, "UUCP"},
1230ec8b83dSEd Tanous     {SyslogFacility::Cron, "Cron"},
1240ec8b83dSEd Tanous     {SyslogFacility::Authpriv, "Authpriv"},
1250ec8b83dSEd Tanous     {SyslogFacility::FTP, "FTP"},
1260ec8b83dSEd Tanous     {SyslogFacility::NTP, "NTP"},
1270ec8b83dSEd Tanous     {SyslogFacility::Security, "Security"},
1280ec8b83dSEd Tanous     {SyslogFacility::Console, "Console"},
1290ec8b83dSEd Tanous     {SyslogFacility::SolarisCron, "SolarisCron"},
1300ec8b83dSEd Tanous     {SyslogFacility::Local0, "Local0"},
1310ec8b83dSEd Tanous     {SyslogFacility::Local1, "Local1"},
1320ec8b83dSEd Tanous     {SyslogFacility::Local2, "Local2"},
1330ec8b83dSEd Tanous     {SyslogFacility::Local3, "Local3"},
1340ec8b83dSEd Tanous     {SyslogFacility::Local4, "Local4"},
1350ec8b83dSEd Tanous     {SyslogFacility::Local5, "Local5"},
1360ec8b83dSEd Tanous     {SyslogFacility::Local6, "Local6"},
1370ec8b83dSEd Tanous     {SyslogFacility::Local7, "Local7"},
1380ec8b83dSEd Tanous });
1390ec8b83dSEd Tanous 
1400ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(LogDiagnosticDataTypes, {
1410ec8b83dSEd Tanous     {LogDiagnosticDataTypes::Invalid, "Invalid"},
1420ec8b83dSEd Tanous     {LogDiagnosticDataTypes::Manager, "Manager"},
1430ec8b83dSEd Tanous     {LogDiagnosticDataTypes::PreOS, "PreOS"},
1440ec8b83dSEd Tanous     {LogDiagnosticDataTypes::OS, "OS"},
1450ec8b83dSEd Tanous     {LogDiagnosticDataTypes::OEM, "OEM"},
1460ec8b83dSEd Tanous });
1470ec8b83dSEd Tanous 
148a8d8f9d8SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(LogPurpose, {
149a8d8f9d8SEd Tanous     {LogPurpose::Invalid, "Invalid"},
150a8d8f9d8SEd Tanous     {LogPurpose::Diagnostic, "Diagnostic"},
151a8d8f9d8SEd Tanous     {LogPurpose::Operations, "Operations"},
152a8d8f9d8SEd Tanous     {LogPurpose::Security, "Security"},
153a8d8f9d8SEd Tanous     {LogPurpose::Telemetry, "Telemetry"},
154a8d8f9d8SEd Tanous     {LogPurpose::ExternalEntity, "ExternalEntity"},
155a8d8f9d8SEd Tanous     {LogPurpose::OEM, "OEM"},
156a8d8f9d8SEd Tanous });
157a8d8f9d8SEd Tanous 
1580ec8b83dSEd Tanous }
1590ec8b83dSEd Tanous // clang-format on
160