From 7282ab7756cdb8c844bef9affd8a8e894828678c Mon Sep 17 00:00:00 2001 From: Ayushi Smriti Date: Mon, 10 May 2021 12:32:30 +0530 Subject: [PATCH] Add msg registry for subscription related actions For subscription event message log purpose, added message registry entry for event service subscription related actions- add, update and delete. Tested: - Message registry entry appears in the log for the corresponding subscription action. Signed-off-by: AppaRao Puli Signed-off-by: Ayushi Smriti --- .../registries/openbmc_message_registry.hpp | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp index e12a138..2f981db 100644 --- a/redfish-core/include/registries/openbmc_message_registry.hpp +++ b/redfish-core/include/registries/openbmc_message_registry.hpp @@ -29,7 +29,7 @@ const Header header = { "0.2.0", "OpenBMC", }; -constexpr std::array registry = { +constexpr std::array registry = { MessageEntry{ "ADDDCCorrectable", { @@ -417,6 +417,45 @@ constexpr std::array registry = { {}, "None.", }}, + MessageEntry{"EventSubscriptionAdded", + { + "Indicates that an Event subscription with specific " + "id was added.", + "Event subscription with id %1 was added.", + "OK", + "OK", + 1, + { + "string", + }, + "None.", + }}, + MessageEntry{"EventSubscriptionRemoved", + { + "Indicates that an Event subscription with specific " + "id was removed.", + "Event subscription with id %1 was removed.", + "OK", + "OK", + 1, + { + "string", + }, + "None.", + }}, + MessageEntry{"EventSubscriptionUpdated", + { + "Indicates that an Event subscription with specific " + " id was updated.", + "Event subscription with id %1 was updated.", + "OK", + "OK", + 1, + { + "string", + }, + "None.", + }}, MessageEntry{"FanInserted", { "Indicates that a system fan has been inserted.", -- 2.17.1