Skip to content

Commit d326ed2

Browse files
committed
updated static_event_map signature
Signed-off-by: Srinadh Penugonda <[email protected]>
1 parent c1b4240 commit d326ed2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/event-alarm-framework/event-alarm-framework.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ The static map is located at eventd/lib/src/eventstaticmap.h
245245

246246
```
247247
std::unordered_map<std::string, EventInfo_t> static_event_map = {
248-
{"PORT_MTU_UPDATE", {EventSeverity::INFORMATIONAL, "Port MTU is updated. "}},
249-
{"TEMPERATURE_EXCEEDED", {EventSeverity::CRITICAL, "Temperature threshold is 75 degrees. "}},
250-
{"PORT_LEARNING_MODE_UPDATE", {EventSeverity::INFORMATIONAL, "Learning mode updated. "}}
248+
{"PORT_MTU_UPDATE", {EventSeverity::INFORMATIONAL, true, "Port MTU is updated. "}},
249+
{"TEMPERATURE_EXCEEDED", {EventSeverity::CRITICAL, true, "Temperature threshold is 75 degrees. "}},
250+
{"PORT_LEARNING_MODE_UPDATE", {EventSeverity::INFORMATIONAL, true, "Learning mode updated. "}}
251251
}
252252
```
253253

@@ -440,7 +440,7 @@ User can select any of the custom severity profiles under /etc/sonic/severitypro
440440

441441
The framework will sanity check the user selected severity profile and merges it with static_event_map.
442442

443-
The selected severity profile will be "active" after a reboot.
443+
The selected severity profile will be "active" after a reboot and merged with the static_event_map.
444444

445445
To "remember" the selected custom profile across reboots, an internal symlink points to the selected custom
446446
profile.

0 commit comments

Comments
 (0)