Skip to content

Commit

Permalink
Fix for special character in the file (#1555)
Browse files Browse the repository at this point in the history
A fix has been added handling the special character in the file
  • Loading branch information
kannankvs authored Dec 13, 2023
1 parent ac6beef commit d1740f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/event-alarm-framework/event-alarm-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -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", &params);

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", &params);


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", &params);
### 3.1.2 Event Consumer
The event consumer is a class in EventDB service that processes the incoming events.
Expand Down

0 comments on commit d1740f1

Please sign in to comment.