blob: 4ff1c8696730f9b7df9b896194e56397d5b21bd3 [file] [log] [blame]
#pragma once
namespace redfish
{
namespace messages
{
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"}};
}
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"}};
}
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