blob: 95ace94f78e40bec805702c5ea616bb1b1e0d665 [file] [log] [blame]
Sunitha Harish74eec262020-06-25 10:00:01 -05001#pragma once
2
3namespace redfish
4{
5namespace messages
6{
7
Ed Tanous65176d32020-09-28 19:04:03 -07008inline nlohmann::json resourceChanged()
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 Tanous65176d32020-09-28 19:04:03 -070019inline nlohmann::json resourceCreated()
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 Tanous65176d32020-09-28 19:04:03 -070030inline nlohmann::json resourceRemoved()
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