blob: 9826566e2737d79734e520ddc13a671c1aaa8b41 [file] [log] [blame]
#pragma once
namespace redfish
{
namespace messages
{
inline nlohmann::json ResourceChanged(void)
{
return nlohmann::json{
{"EventType", "ResourceChanged"},
{"MessageId", "ResourceEvent.1.0.3.ResourceChanged"},
{"Message", "One or more resource properties have changed."},
{"MessageArgs", {}},
{"Severity", "OK"},
{"MessageSeverity", "OK"}};
}
inline nlohmann::json ResourceCreated(void)
{
return nlohmann::json{
{"EventType", "ResourceAdded"},
{"MessageId", "ResourceEvent.1.0.3.ResourceCreated"},
{"Message", "The resource has been created successfully."},
{"MessageArgs", {}},
{"Severity", "OK"},
{"MessageSeverity", "OK"}};
}
inline nlohmann::json ResourceRemoved(void)
{
return nlohmann::json{
{"EventType", "ResourceRemoved"},
{"MessageId", "ResourceEvent.1.0.3.ResourceRemoved"},
{"Message", "The resource has been removed successfully."},
{"MessageArgs", {}},
{"Severity", "OK"},
{"MessageSeverity", "OK"}};
}
} // namespace messages
} // namespace redfish