1 #pragma once 2 3 namespace redfish 4 { 5 namespace messages 6 { 7 8 nlohmann::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 19 nlohmann::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 30 nlohmann::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 43