blob: 17157fe250f2ce17a68aeb8053ff67d1cc7d98c5 [file] [log] [blame]
Sunitha Harish74eec262020-06-25 10:00:01 -05001#pragma once
2
3namespace redfish
4{
5namespace messages
6{
7
Ed Tanous2c70f802020-09-28 14:29:23 -07008inline nlohmann::json resourceChanged(void)
Sunitha Harish74eec262020-06-25 10:00:01 -05009{
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
Ed Tanous2c70f802020-09-28 14:29:23 -070019inline nlohmann::json resourceCreated(void)
Sunitha Harish74eec262020-06-25 10:00:01 -050020{
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
Ed Tanous2c70f802020-09-28 14:29:23 -070030inline nlohmann::json resourceRemoved(void)
Sunitha Harish74eec262020-06-25 10:00:01 -050031{
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