From d1740f1bc1b826207608da9b4b24dbcd4dbf313c Mon Sep 17 00:00:00 2001 From: kannankvs Date: Wed, 13 Dec 2023 11:09:51 +0530 Subject: [PATCH] Fix for special character in the file (#1555) A fix has been added handling the special character in the file --- doc/event-alarm-framework/event-alarm-framework.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/event-alarm-framework/event-alarm-framework.md b/doc/event-alarm-framework/event-alarm-framework.md index 00764de663..9238b32544 100644 --- a/doc/event-alarm-framework/event-alarm-framework.md +++ b/doc/event-alarm-framework/event-alarm-framework.md @@ -311,16 +311,16 @@ The following additional parameters to be given with this api: For e.g call for port down event. current call: - event_params_t params = {{"ifname",port.m_alias},{"status",isUp ? "up" : "down"}}; + event_params_t params = /{/{"ifname",port.m_alias/},/{"status",isUp ? "up" : "down"/}/}; event_publish(g_events_handle, "if-state", ¶ms); new call: - event_params_t params = {{"ifname",port.m_alias},{"status",isUp ? "up" : "down"}, {"resource", port.m_alias}, {"event-id", "INTERFACE_OPER_STATUS_CHANGE"}, {"text", isUp? "status:UP" : "status:DOWN"}}; + event_params_t params = /{/{"ifname",port.m_alias},{"status",isUp ? "up" : "down"}, {"resource", port.m_alias}, {"event-id", "INTERFACE_OPER_STATUS_CHANGE"}, {"text", isUp? "status:UP" : "status:DOWN"/}/}; event_publish(g_events_handle, "if-state", ¶ms); e.g., Sensor temperature critical high - event_params_t params = {{"event-id", "SENSOR_TEMP_CRTICAL_HIGH"}, {"text", "Current temperature {}C, critical high threshold {}C", {"action":"RAISE_ALARM"}, {"resource":"sensor_name"}}} ; + event_params_t params = /{/{"event-id", "SENSOR_TEMP_CRTICAL_HIGH"}, {"text", "Current temperature {}C, critical high threshold {}C", {"action":"RAISE_ALARM"}, {"resource":"sensor_name"/}/}/} ; event_publish(g_events_handle, "sensor_temp_critical_high", ¶ms); ### 3.1.2 Event Consumer The event consumer is a class in EventDB service that processes the incoming events.