Sunitha Harish | 74eec26 | 2020-06-25 10:00:01 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | namespace redfish |
| 4 | { |
| 5 | namespace messages |
| 6 | { |
| 7 | |
Ed Tanous | 2c70f80 | 2020-09-28 14:29:23 -0700 | [diff] [blame] | 8 | inline nlohmann::json resourceChanged(void) |
Sunitha Harish | 74eec26 | 2020-06-25 10:00:01 -0500 | [diff] [blame] | 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 | |
Ed Tanous | 2c70f80 | 2020-09-28 14:29:23 -0700 | [diff] [blame] | 19 | inline nlohmann::json resourceCreated(void) |
Sunitha Harish | 74eec26 | 2020-06-25 10:00:01 -0500 | [diff] [blame] | 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 | |
Ed Tanous | 2c70f80 | 2020-09-28 14:29:23 -0700 | [diff] [blame] | 30 | inline nlohmann::json resourceRemoved(void) |
Sunitha Harish | 74eec26 | 2020-06-25 10:00:01 -0500 | [diff] [blame] | 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 |