xref: /openbmc/bmcweb/features/redfish/include/generated/enums/log_service.hpp (revision 2ae81db99a155febe45d27e3834cfa5471b3ecdf)
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,
21e9cc1bc9SEd 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 
83*2ae81db9SGunnar Mills enum class TransferProtocolType{
84*2ae81db9SGunnar Mills     Invalid,
85*2ae81db9SGunnar Mills     CIFS,
86*2ae81db9SGunnar Mills     FTP,
87*2ae81db9SGunnar Mills     SFTP,
88*2ae81db9SGunnar Mills     HTTP,
89*2ae81db9SGunnar Mills     HTTPS,
90*2ae81db9SGunnar Mills     NFS,
91*2ae81db9SGunnar Mills     SCP,
92*2ae81db9SGunnar Mills     TFTP,
93*2ae81db9SGunnar Mills     OEM,
94*2ae81db9SGunnar Mills };
95*2ae81db9SGunnar Mills 
960ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(OverWritePolicy, {
970ec8b83dSEd Tanous     {OverWritePolicy::Invalid, "Invalid"},
980ec8b83dSEd Tanous     {OverWritePolicy::Unknown, "Unknown"},
990ec8b83dSEd Tanous     {OverWritePolicy::WrapsWhenFull, "WrapsWhenFull"},
1000ec8b83dSEd Tanous     {OverWritePolicy::NeverOverWrites, "NeverOverWrites"},
1010ec8b83dSEd Tanous });
1020ec8b83dSEd Tanous 
1030ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(LogEntryTypes, {
1040ec8b83dSEd Tanous     {LogEntryTypes::Invalid, "Invalid"},
1050ec8b83dSEd Tanous     {LogEntryTypes::Event, "Event"},
1060ec8b83dSEd Tanous     {LogEntryTypes::SEL, "SEL"},
1070ec8b83dSEd Tanous     {LogEntryTypes::Multiple, "Multiple"},
1080ec8b83dSEd Tanous     {LogEntryTypes::OEM, "OEM"},
109e9cc1bc9SEd Tanous     {LogEntryTypes::CXL, "CXL"},
1100ec8b83dSEd Tanous });
1110ec8b83dSEd Tanous 
1120ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(SyslogSeverity, {
1130ec8b83dSEd Tanous     {SyslogSeverity::Invalid, "Invalid"},
1140ec8b83dSEd Tanous     {SyslogSeverity::Emergency, "Emergency"},
1150ec8b83dSEd Tanous     {SyslogSeverity::Alert, "Alert"},
1160ec8b83dSEd Tanous     {SyslogSeverity::Critical, "Critical"},
1170ec8b83dSEd Tanous     {SyslogSeverity::Error, "Error"},
1180ec8b83dSEd Tanous     {SyslogSeverity::Warning, "Warning"},
1190ec8b83dSEd Tanous     {SyslogSeverity::Notice, "Notice"},
1200ec8b83dSEd Tanous     {SyslogSeverity::Informational, "Informational"},
1210ec8b83dSEd Tanous     {SyslogSeverity::Debug, "Debug"},
1220ec8b83dSEd Tanous     {SyslogSeverity::All, "All"},
1230ec8b83dSEd Tanous });
1240ec8b83dSEd Tanous 
1250ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(SyslogFacility, {
1260ec8b83dSEd Tanous     {SyslogFacility::Invalid, "Invalid"},
1270ec8b83dSEd Tanous     {SyslogFacility::Kern, "Kern"},
1280ec8b83dSEd Tanous     {SyslogFacility::User, "User"},
1290ec8b83dSEd Tanous     {SyslogFacility::Mail, "Mail"},
1300ec8b83dSEd Tanous     {SyslogFacility::Daemon, "Daemon"},
1310ec8b83dSEd Tanous     {SyslogFacility::Auth, "Auth"},
1320ec8b83dSEd Tanous     {SyslogFacility::Syslog, "Syslog"},
1330ec8b83dSEd Tanous     {SyslogFacility::LPR, "LPR"},
1340ec8b83dSEd Tanous     {SyslogFacility::News, "News"},
1350ec8b83dSEd Tanous     {SyslogFacility::UUCP, "UUCP"},
1360ec8b83dSEd Tanous     {SyslogFacility::Cron, "Cron"},
1370ec8b83dSEd Tanous     {SyslogFacility::Authpriv, "Authpriv"},
1380ec8b83dSEd Tanous     {SyslogFacility::FTP, "FTP"},
1390ec8b83dSEd Tanous     {SyslogFacility::NTP, "NTP"},
1400ec8b83dSEd Tanous     {SyslogFacility::Security, "Security"},
1410ec8b83dSEd Tanous     {SyslogFacility::Console, "Console"},
1420ec8b83dSEd Tanous     {SyslogFacility::SolarisCron, "SolarisCron"},
1430ec8b83dSEd Tanous     {SyslogFacility::Local0, "Local0"},
1440ec8b83dSEd Tanous     {SyslogFacility::Local1, "Local1"},
1450ec8b83dSEd Tanous     {SyslogFacility::Local2, "Local2"},
1460ec8b83dSEd Tanous     {SyslogFacility::Local3, "Local3"},
1470ec8b83dSEd Tanous     {SyslogFacility::Local4, "Local4"},
1480ec8b83dSEd Tanous     {SyslogFacility::Local5, "Local5"},
1490ec8b83dSEd Tanous     {SyslogFacility::Local6, "Local6"},
1500ec8b83dSEd Tanous     {SyslogFacility::Local7, "Local7"},
1510ec8b83dSEd Tanous });
1520ec8b83dSEd Tanous 
1530ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(LogDiagnosticDataTypes, {
1540ec8b83dSEd Tanous     {LogDiagnosticDataTypes::Invalid, "Invalid"},
1550ec8b83dSEd Tanous     {LogDiagnosticDataTypes::Manager, "Manager"},
1560ec8b83dSEd Tanous     {LogDiagnosticDataTypes::PreOS, "PreOS"},
1570ec8b83dSEd Tanous     {LogDiagnosticDataTypes::OS, "OS"},
1580ec8b83dSEd Tanous     {LogDiagnosticDataTypes::OEM, "OEM"},
1590ec8b83dSEd Tanous });
1600ec8b83dSEd Tanous 
161a8d8f9d8SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(LogPurpose, {
162a8d8f9d8SEd Tanous     {LogPurpose::Invalid, "Invalid"},
163a8d8f9d8SEd Tanous     {LogPurpose::Diagnostic, "Diagnostic"},
164a8d8f9d8SEd Tanous     {LogPurpose::Operations, "Operations"},
165a8d8f9d8SEd Tanous     {LogPurpose::Security, "Security"},
166a8d8f9d8SEd Tanous     {LogPurpose::Telemetry, "Telemetry"},
167a8d8f9d8SEd Tanous     {LogPurpose::ExternalEntity, "ExternalEntity"},
168a8d8f9d8SEd Tanous     {LogPurpose::OEM, "OEM"},
169a8d8f9d8SEd Tanous });
170a8d8f9d8SEd Tanous 
171*2ae81db9SGunnar Mills NLOHMANN_JSON_SERIALIZE_ENUM(TransferProtocolType, {
172*2ae81db9SGunnar Mills     {TransferProtocolType::Invalid, "Invalid"},
173*2ae81db9SGunnar Mills     {TransferProtocolType::CIFS, "CIFS"},
174*2ae81db9SGunnar Mills     {TransferProtocolType::FTP, "FTP"},
175*2ae81db9SGunnar Mills     {TransferProtocolType::SFTP, "SFTP"},
176*2ae81db9SGunnar Mills     {TransferProtocolType::HTTP, "HTTP"},
177*2ae81db9SGunnar Mills     {TransferProtocolType::HTTPS, "HTTPS"},
178*2ae81db9SGunnar Mills     {TransferProtocolType::NFS, "NFS"},
179*2ae81db9SGunnar Mills     {TransferProtocolType::SCP, "SCP"},
180*2ae81db9SGunnar Mills     {TransferProtocolType::TFTP, "TFTP"},
181*2ae81db9SGunnar Mills     {TransferProtocolType::OEM, "OEM"},
182*2ae81db9SGunnar Mills });
183*2ae81db9SGunnar Mills 
1840ec8b83dSEd Tanous }
1850ec8b83dSEd Tanous // clang-format on
186