blob: 322c9ffcc6098576c819e8e0d246692e031f01a2 [file] [log] [blame]
Adriana Kobylak59334332017-02-14 16:00:15 -06001// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
3#pragma once
4
5#include <map>
6#include <string>
7#include <tuple>
8#include <type_traits>
9#include <vector>
10#include "log.hpp"
11
12namespace phosphor
13{
14
15namespace logging
16{
17
18std::map<std::string,std::vector<std::string>> g_errMetaMapHostEvent = {
19 {"org.open_power.Error.Host.Event.Event",{"ESEL"}},
20};
21
22std::map<std::string,level> g_errLevelMapHostEvent = {
23 {"org.open_power.Error.Host.Event.Event",level::INFO},
24};
25
26namespace org
27{
28namespace open_power
29{
30namespace Error
31{
32namespace Host
33{
34namespace _Event
35{
36struct ESEL
37{
38 static constexpr auto str = "ESEL=%s";
39 static constexpr auto str_short = "ESEL";
40 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
41 explicit constexpr ESEL(const char* a) : _entry(entry(str, a)) {};
42 type _entry;
43};
44
45} // namespace _Event
46
47struct Event
48{
49 static constexpr auto err_code = "org.open_power.Error.Host.Event.Event";
50 static constexpr auto err_msg = "A host system event was received";
51 static constexpr auto L = level::INFO;
52 using ESEL = _Event::ESEL;
53 using metadata_types = std::tuple<ESEL>;
54};
55} // namespace Host
56} // namespace Error
57} // namespace open_power
58} // namespace org
59} // namespace logging
60} // namespace phosphor