Skip to content

Commit 0044540

Browse files
authored
Add new tables for Event and Alarms. (#852)
Why I did it This PR contains code changes for providing extension to the Event Framework as specified in the sonic-net/SONiC#1409 How I did it Followed design specified in sonic-net/SONiC#1409. Add new tables for events and alarms.
1 parent 4b23970 commit 0044540

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

common/schema.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace swss {
2323
#define CHASSIS_APP_DB 12
2424
#define CHASSIS_STATE_DB 13
2525
#define APPL_STATE_DB 14
26+
#define EVENT_DB 19
2627

2728
/***** APPLICATION DATABASE *****/
2829

@@ -567,6 +568,12 @@ namespace swss {
567568
#define APP_FABRIC_MONITOR_DATA_TABLE_NAME "FABRIC_MONITOR_TABLE"
568569
#define APP_FABRIC_MONITOR_PORT_TABLE_NAME "FABRIC_PORT_TABLE"
569570

571+
#define EVENT_HISTORY_TABLE_NAME "EVENT"
572+
#define EVENT_CURRENT_ALARM_TABLE_NAME "ALARM"
573+
#define EVENT_STATS_TABLE_NAME "EVENT_STATS"
574+
#define EVENT_ALARM_STATS_TABLE_NAME "ALARM_STATS"
575+
576+
570577
#ifdef __cplusplus
571578
}
572579
#endif

0 commit comments

Comments
 (0)