blob: 4ff1c8696730f9b7df9b896194e56397d5b21bd3 [file] [log] [blame]
Sunitha Harish74eec262020-06-25 10:00:01 -05001#pragma once
2
3namespace redfish
4{
5namespace messages
6{
7
8nlohmann::json ResourceChanged(void)
9{
10 return nlohmann::json{
11 {"EventType", "ResourceChanged"},
12 {"MessageId", "ResourceEvent.1.0.3.ResourceChanged"},
13 {"Message", "One or more resource properties have changed."},
14 {"MessageArgs", {}},
15 {"Severity", "OK"},
16 {"MessageSeverity", "OK"}};
17}
18
19nlohmann::json ResourceCreated(void)
20{
21 return nlohmann::json{
22 {"EventType", "ResourceAdded"},
23 {"MessageId", "ResourceEvent.1.0.3.ResourceCreated"},
24 {"Message", "The resource has been created successfully."},
25 {"MessageArgs", {}},
26 {"Severity", "OK"},
27 {"MessageSeverity", "OK"}};
28}
29
30nlohmann::json ResourceRemoved(void)
31{
32 return nlohmann::json{
33 {"EventType", "ResourceRemoved"},
34 {"MessageId", "ResourceEvent.1.0.3.ResourceRemoved"},
35 {"Message", "The resource has been removed successfully."},
36 {"MessageArgs", {}},
37 {"Severity", "OK"},
38 {"MessageSeverity", "OK"}};
39}
40
41} // namespace messages
42} // namespace redfish