Improve UT coverage
Change-Id: Ie59e1f7bf532a8e1fd2652b506ee184613731bd1
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
diff --git a/definitions/sample.json b/definitions/sample.json
new file mode 100755
index 0000000..72366c5
--- /dev/null
+++ b/definitions/sample.json
@@ -0,0 +1,2607 @@
+{
+ "uiniquealarmid": 8087,
+ "activealarms": [],
+ "alarmhistory": [
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498114499496227,
+ "alarmId": 8005,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498119500517283,
+ "alarmId": 8005,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498121501671796,
+ "alarmId": 8006,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498121501929785,
+ "alarmId": 8007,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498126505319792,
+ "alarmId": 8006,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498126505535245,
+ "alarmId": 8007,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498128506731564,
+ "alarmId": 8008,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498128509227699,
+ "alarmId": 8008,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8008,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "active",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498130511760792,
+ "alarmId": 8010,
+ "alarmText": "ACTIVE ALARM EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8006,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some Application data",
+ "identifyingInfo": "eth 0 2",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498130511274197,
+ "alarmId": 8009,
+ "alarmText": "E2 CONNECTIVITY LOST TO G-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498140503548056,
+ "alarmId": 8011,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498141506690290,
+ "alarmId": 8011,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498143507703454,
+ "alarmId": 8012,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498144510711707,
+ "alarmId": 8013,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498144512682161,
+ "alarmId": 8012,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498144512852469,
+ "alarmId": 8013,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498146513942099,
+ "alarmId": 8014,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623498147516936728,
+ "alarmId": 8015,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498147519392743,
+ "alarmId": 8014,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498147519552415,
+ "alarmId": 8015,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8007,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623498152520716244,
+ "alarmId": 8007,
+ "alarmText": "E2 CONNECTIVITY LOST TO E-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "Not defined",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499227063807040,
+ "alarmId": 8016,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499232063927636,
+ "alarmId": 8016,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499234064823653,
+ "alarmId": 8017,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499234066354186,
+ "alarmId": 8018,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499239070303228,
+ "alarmId": 8017,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499239070474550,
+ "alarmId": 8018,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499241071772807,
+ "alarmId": 8019,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499241075826531,
+ "alarmId": 8019,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8008,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "active",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499243078439823,
+ "alarmId": 8021,
+ "alarmText": "ACTIVE ALARM EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8009,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "history",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499243078454230,
+ "alarmId": 8022,
+ "alarmText": "ALARM HISTORY EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8006,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some Application data",
+ "identifyingInfo": "eth 0 2",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499243077861151,
+ "alarmId": 8020,
+ "alarmText": "E2 CONNECTIVITY LOST TO G-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499253067569934,
+ "alarmId": 8023,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499254071008066,
+ "alarmId": 8023,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499256071834654,
+ "alarmId": 8024,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499257081119121,
+ "alarmId": 8025,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499257083783714,
+ "alarmId": 8024,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499257084028388,
+ "alarmId": 8025,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499259087781619,
+ "alarmId": 8026,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499260091366309,
+ "alarmId": 8027,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499260093673569,
+ "alarmId": 8026,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499260093818784,
+ "alarmId": 8027,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8007,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499265095132426,
+ "alarmId": 8007,
+ "alarmText": "E2 CONNECTIVITY LOST TO E-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "Not defined",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499487662384812,
+ "alarmId": 8028,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499492661994536,
+ "alarmId": 8028,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499494663258254,
+ "alarmId": 8029,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499494663503469,
+ "alarmId": 8030,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499499666860902,
+ "alarmId": 8029,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499499666999818,
+ "alarmId": 8030,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499501667912722,
+ "alarmId": 8031,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499501671305995,
+ "alarmId": 8031,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8008,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "active",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499503674034536,
+ "alarmId": 8033,
+ "alarmText": "ACTIVE ALARM EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8009,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "history",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499503674055631,
+ "alarmId": 8034,
+ "alarmText": "ALARM HISTORY EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8006,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some Application data",
+ "identifyingInfo": "eth 0 2",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499503673573274,
+ "alarmId": 8032,
+ "alarmText": "E2 CONNECTIVITY LOST TO G-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499513665838077,
+ "alarmId": 8035,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499514670989375,
+ "alarmId": 8035,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499516671861688,
+ "alarmId": 8036,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499517676257504,
+ "alarmId": 8037,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499517679094420,
+ "alarmId": 8036,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499517679258460,
+ "alarmId": 8037,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499519680584392,
+ "alarmId": 8038,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499520684439404,
+ "alarmId": 8039,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499520687771749,
+ "alarmId": 8038,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499520687945738,
+ "alarmId": 8039,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8007,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499525688968922,
+ "alarmId": 8007,
+ "alarmText": "E2 CONNECTIVITY LOST TO E-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "Not defined",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499665073708622,
+ "alarmId": 8040,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499670072593376,
+ "alarmId": 8040,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499672073901425,
+ "alarmId": 8041,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499672074116121,
+ "alarmId": 8042,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499677080719814,
+ "alarmId": 8041,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499677080892758,
+ "alarmId": 8042,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499679082246897,
+ "alarmId": 8043,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499679086412588,
+ "alarmId": 8043,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8008,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "active",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499681093957272,
+ "alarmId": 8045,
+ "alarmText": "ACTIVE ALARM EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8009,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "history",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499681094047280,
+ "alarmId": 8046,
+ "alarmText": "ALARM HISTORY EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8006,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some Application data",
+ "identifyingInfo": "eth 0 2",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499681092612420,
+ "alarmId": 8044,
+ "alarmText": "E2 CONNECTIVITY LOST TO G-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499691075052956,
+ "alarmId": 8047,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499692080378820,
+ "alarmId": 8047,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499694081653720,
+ "alarmId": 8048,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499695086068506,
+ "alarmId": 8049,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499695090035685,
+ "alarmId": 8048,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499695090177760,
+ "alarmId": 8049,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499697091096196,
+ "alarmId": 8050,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499698095543330,
+ "alarmId": 8051,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499698144257584,
+ "alarmId": 8050,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499698144351389,
+ "alarmId": 8051,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8007,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499703145461988,
+ "alarmId": 8007,
+ "alarmText": "E2 CONNECTIVITY LOST TO E-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "Not defined",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499960490517730,
+ "alarmId": 8052,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499965490154479,
+ "alarmId": 8052,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499967491113986,
+ "alarmId": 8053,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499967491321573,
+ "alarmId": 8054,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499972496667937,
+ "alarmId": 8053,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499972496959267,
+ "alarmId": 8054,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499974499450213,
+ "alarmId": 8055,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499974503155287,
+ "alarmId": 8055,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8008,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "active",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499976508715755,
+ "alarmId": 8057,
+ "alarmText": "ACTIVE ALARM EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8009,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "history",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499976508811727,
+ "alarmId": 8058,
+ "alarmText": "ALARM HISTORY EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8006,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some Application data",
+ "identifyingInfo": "eth 0 2",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499976507898768,
+ "alarmId": 8056,
+ "alarmText": "E2 CONNECTIVITY LOST TO G-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499986492502940,
+ "alarmId": 8059,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499987497413466,
+ "alarmId": 8059,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499989498379909,
+ "alarmId": 8060,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499990504297984,
+ "alarmId": 8061,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499990507954365,
+ "alarmId": 8060,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499990508179487,
+ "alarmId": 8061,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499992510667430,
+ "alarmId": 8062,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623499993515351869,
+ "alarmId": 8063,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499993519306965,
+ "alarmId": 8062,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499993519727643,
+ "alarmId": 8063,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8007,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623499998521055159,
+ "alarmId": 8007,
+ "alarmText": "E2 CONNECTIVITY LOST TO E-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "Not defined",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501490060159266,
+ "alarmId": 8064,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501495063804517,
+ "alarmId": 8064,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501497064945521,
+ "alarmId": 8065,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501497065130591,
+ "alarmId": 8066,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501502073621951,
+ "alarmId": 8065,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501502073797863,
+ "alarmId": 8066,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501504076816813,
+ "alarmId": 8067,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501504080564862,
+ "alarmId": 8067,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8008,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "active",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501506083952607,
+ "alarmId": 8069,
+ "alarmText": "ACTIVE ALARM EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8009,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "history",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501506084021139,
+ "alarmId": 8070,
+ "alarmText": "ALARM HISTORY EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8006,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some Application data",
+ "identifyingInfo": "eth 0 2",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501506083173304,
+ "alarmId": 8068,
+ "alarmText": "E2 CONNECTIVITY LOST TO G-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501516066029402,
+ "alarmId": 8071,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501517070969810,
+ "alarmId": 8071,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501519072007925,
+ "alarmId": 8072,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501520077495363,
+ "alarmId": 8073,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501520082020297,
+ "alarmId": 8072,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501520082652089,
+ "alarmId": 8073,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501522085127537,
+ "alarmId": 8074,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623501523090628747,
+ "alarmId": 8075,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501523094979165,
+ "alarmId": 8074,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501523095125690,
+ "alarmId": 8075,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8007,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623501528096178197,
+ "alarmId": 8007,
+ "alarmText": "E2 CONNECTIVITY LOST TO E-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "Not defined",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502413250333181,
+ "alarmId": 8076,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502418248126668,
+ "alarmId": 8076,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502420249635335,
+ "alarmId": 8077,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502420249953018,
+ "alarmId": 8078,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502425255859264,
+ "alarmId": 8077,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8005,
+ "perceivedSeverity": "MINOR",
+ "additionalInfo": "Hello",
+ "identifyingInfo": "abcd 11",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502425256283653,
+ "alarmId": 8078,
+ "alarmText": "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502427257314936,
+ "alarmId": 8079,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502427262077867,
+ "alarmId": 8079,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8008,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "active",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502429270667276,
+ "alarmId": 8081,
+ "alarmText": "ACTIVE ALARM EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8009,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "history",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502429270684411,
+ "alarmId": 8082,
+ "alarmText": "ALARM HISTORY EXCEED MAX THRESHOLD",
+ "eventType": "equipment",
+ "operationInstructions": "Clear alarms or raise threshold",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8006,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some Application data",
+ "identifyingInfo": "eth 0 2",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502429269832413,
+ "alarmId": 8080,
+ "alarmText": "E2 CONNECTIVITY LOST TO G-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502439250246337,
+ "alarmId": 8083,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502440259723139,
+ "alarmId": 8083,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502442260875182,
+ "alarmId": 8084,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502443268324194,
+ "alarmId": 8085,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502443273255495,
+ "alarmId": 8084,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502443273443839,
+ "alarmId": 8085,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502445275012266,
+ "alarmId": 8086,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "RAISE",
+ "AlarmTime": 1623502446282899221,
+ "alarmId": 8087,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 9999,
+ "perceivedSeverity": "CRITICAL",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502446289424731,
+ "alarmId": 8086,
+ "alarmText": "DELAYED TEST ALARM",
+ "eventType": "Test type",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8004,
+ "perceivedSeverity": "MAJOR",
+ "additionalInfo": "Some App data",
+ "identifyingInfo": "eth 0 1",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502446289550741,
+ "alarmId": 8087,
+ "alarmText": "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType": "Processing error",
+ "operationInstructions": "",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ },
+ {
+ "managedObjectId": "my-pod",
+ "applicationId": "my-app",
+ "specificProblem": 8007,
+ "perceivedSeverity": "WARNING",
+ "additionalInfo": "threshold",
+ "identifyingInfo": "",
+ "AlarmAction": "CLEAR",
+ "AlarmTime": 1623502451291658803,
+ "alarmId": 8007,
+ "alarmText": "E2 CONNECTIVITY LOST TO E-NODEB",
+ "eventType": "communication",
+ "operationInstructions": "Not defined",
+ "raiseDelay": 0,
+ "clearDelay": 0,
+ "timeToLive": 0
+ }
+ ]
+}
\ No newline at end of file
diff --git a/definitions/test.json b/definitions/test.json
new file mode 100755
index 0000000..833fb41
--- /dev/null
+++ b/definitions/test.json
@@ -0,0 +1,56 @@
+{
+ {
+ "alarmId" : 8004,
+ "alarmText" : "RIC ROUTING TABLE DISTRIBUTION FAILED",
+ "eventType" : "processingError",
+ "operationInstructions" : "Not defined",
+ "raiseDelay" : 0,
+ "clearDelay" : 0,
+ "timeToLive" : 0
+ },
+ {
+ "alarmId" : 8005,
+ "alarmText" : "TCP CONNECTIVITY LOST TO DBAAS",
+ "eventType" : "communication",
+ "operationInstructions" : "Not defined",
+ "raiseDelay" : 0,
+ "clearDelay" : 0,
+ "timeToLive" : 0
+ {
+ "alarmId" : 8006,
+ "alarmText" : "E2 CONNECTIVITY LOST TO G-NODEB",
+ "eventType" : "communication",
+ "operationInstructions" : "Not defined",
+ "raiseDelay" : 0,
+ "clearDelay" : 0,
+ "timeToLive" : 0
+ },
+ {
+ "alarmId" : 8007,
+ "alarmText" : "E2 CONNECTIVITY LOST TO E-NODEB",
+ "eventType" : "communication",
+ "operationInstructions" : "Not defined",
+ "raiseDelay" : 0,
+ "clearDelay" : 0,
+ "timeToLive" : 0
+ },
+ {
+ "alarmId" : 8008,
+ "alarmText" : "ACTIVE ALARM EXCEED MAX THRESHOLD",
+ "eventType" : "equipment",
+ "operationInstructions" : "Clear alarms or raise threshold",
+ "raiseDelay" : 0,
+ "clearDelay" : 0,
+ "timeToLive" : 0
+ },
+ {
+ "alarmId" : 8009,
+ "alarmText" : "ALARM HISTORY EXCEED MAX THRESHOLD",
+ "eventType" : "equipment",
+ "operationInstructions" : "Clear alarms or raise threshold",
+ "raiseDelay" : 0,
+ "clearDelay" : 0,
+ "timeToLive" : 0
+ }
+ ]
+}
diff --git a/manager/cmd/manager.go b/manager/cmd/manager.go
index c1f1a66..da689dc 100755
--- a/manager/cmd/manager.go
+++ b/manager/cmd/manager.go
@@ -371,12 +371,10 @@
if !a.rmrReady {
app.Logger.Info("RMR not ready yet!")
}
-
return a.rmrReady
}
func (a *AlarmManager) ConfigChangeCB(configparam string) {
-
a.maxActiveAlarms = app.Config.GetInt("controls.maxActiveAlarms")
if a.maxActiveAlarms == 0 {
a.maxActiveAlarms = 5000
diff --git a/manager/cmd/manager_test.go b/manager/cmd/manager_test.go
index 4f4cf6d..7efbab2 100755
--- a/manager/cmd/manager_test.go
+++ b/manager/cmd/manager_test.go
@@ -140,7 +140,56 @@
response := executeRequest(req, handleFunc)
status := checkResponseCode(t, http.StatusOK, response.Code)
xapp.Logger.Info("status = %v", status)
+}
+
+func TestSetAlarmConfigDecodeError(t *testing.T) {
+ xapp.Logger.Info("TestSetAlarmConfigDecodeError")
+
+ var jsonStr = []byte(`{"test":"Invalid Alarm Data", "test1" 123}`)
+ req, _ := http.NewRequest("POST", "/ric/v1/alarms", bytes.NewBuffer(jsonStr))
+ handleFunc := http.HandlerFunc(alarmManager.SetAlarmConfig)
+ response := executeRequest(req, handleFunc)
+ status := checkResponseCode(t,http.StatusOK,response.Code)
+ xapp.Logger.Info("status = %v", status)
+}
+
+func TestSetAlarmDefinitionDecodeError(t *testing.T) {
+ xapp.Logger.Info("TestSetAlarmDefinitionDecodeError")
+
+ var jsonStr = []byte(`{"test":"Invalid Alarm Data", "test1" 123}`)
+ req, _ := http.NewRequest("POST", "/ric/v1/alarms/define", bytes.NewBuffer(jsonStr))
+ handleFunc := http.HandlerFunc(alarmManager.SetAlarmDefinition)
+ response := executeRequest(req, handleFunc)
+ status := checkResponseCode(t,http.StatusBadRequest,response.Code)
+ xapp.Logger.Info("status = %v", status)
+}
+
+func TestRaiseAlarmEmptyBody(t *testing.T) {
+ xapp.Logger.Info("TestRaiseAlarmEmptyBody")
+ req, _ := http.NewRequest("POST", "/ric/v1/alarms", nil)
+ handleFunc := http.HandlerFunc(alarmManager.RaiseAlarm)
+ response := executeRequest(req, handleFunc)
+ status := checkResponseCode(t,http.StatusOK,response.Code)
+ xapp.Logger.Info("status = %v", status)
+}
+
+func TestSetAlarmDefinitionsEmptyBody(t *testing.T) {
+ xapp.Logger.Info("TestSetAlarmDefinitionsEmptyBody")
+ req, _ := http.NewRequest("POST", "/ric/v1/alarms/define", nil)
+ handleFunc := http.HandlerFunc(alarmManager.SetAlarmDefinition)
+ response := executeRequest(req, handleFunc)
+ status := checkResponseCode(t,http.StatusBadRequest,response.Code)
+ xapp.Logger.Info("status = %v", status)
+}
+
+func TestClearAlarmEmptyBody(t *testing.T) {
+ xapp.Logger.Info("TestClearAlarmEmptyBody")
+ req, _ := http.NewRequest("DELETE", "/ric/v1/alarms", nil)
+ handleFunc := http.HandlerFunc(alarmManager.ClearAlarm)
+ response := executeRequest(req, handleFunc)
+ status := checkResponseCode(t,http.StatusOK,response.Code)
+ xapp.Logger.Info("status = %v", status)
}
func TestGetAlarmDefinitions(t *testing.T) {
@@ -609,6 +658,60 @@
alarmManager.ConfigChangeCB("AlarmManager")
}
+func TestPersistentStorage(t *testing.T) {
+ xapp.Logger.Info("TestPersistentStorage")
+ alarmManager.alarmInfoPvFile = "../../definitions/sample.json"
+ alarmManager.ReadAlarmInfoFromPersistentVolume()
+}
+
+func TestReadAlarmDefinitionFromJsonWrongFilename(t *testing.T) {
+ // use to set wrong file name os.Setenv("SITE_TITLE", "Test Site")
+ xapp.Logger.Info("TestReadAlarmDefinitionFromJsonWrongFilename")
+ os.Setenv("DEF_FILE","test.json")
+ alarmManager.ReadAlarmDefinitionFromJson()
+ // correct the filename
+}
+
+func TestReadAlarmDefinitionFromJsonInvalidFilename(t *testing.T) {
+ // use to set wrong file name os.Setenv("SITE_TITLE", "Test Site")
+ xapp.Logger.Info("TestReadAlarmDefinitionFromJsonInvalidFilename")
+ os.Setenv("DEF_FILE","../../definitions/test.json")
+ alarmManager.ReadAlarmDefinitionFromJson()
+ // correct the filename
+}
+
+func TestPostAlarm(t *testing.T) {
+ xapp.Logger.Info("TestPostAlarm")
+ var activeAlarms []AlarmNotification
+ activeAlarms = make([]AlarmNotification, 1)
+ alarmManager.PostAlarm(&activeAlarms[0])
+}
+
+func TestPostAlarm1(t *testing.T) {
+ xapp.Logger.Info("TestPostAlarm")
+ var activeAlarms []AlarmNotification
+ activeAlarms = make([]AlarmNotification, 2)
+ alarmManager.PostAlarm(&activeAlarms[0])
+}
+
+func TestNewAlarmManagerOther(t *testing.T){
+ NewAlarmManager("", 0, true)
+}
+
+func TestStatusCallbackFailure(t *testing.T) {
+ xapp.Logger.Info("TestStatusCallbackFailure")
+ alarmManager.rmrReady = false
+ assert.Equal(t, false, alarmManager.StatusCB())
+}
+
+func TestConfigChangeCBFailure(t *testing.T) {
+ xapp.Logger.Info("TestConfigChangeCBFailure")
+ alarmManager.maxActiveAlarms = 0
+ alarmManager.maxAlarmHistory = 0
+ alarmManager.ConfigChangeCB("AlarmManager")
+}
+
+
func VerifyAlarm(t *testing.T, a alarm.Alarm, expectedCount int) string {
receivedAlert := waitForEvent()
@@ -727,3 +830,5 @@
}
return file, nil
}
+
+
diff --git a/manager/cmd/restapi.go b/manager/cmd/restapi.go
index df0ac2b..a4668aa 100755
--- a/manager/cmd/restapi.go
+++ b/manager/cmd/restapi.go
@@ -203,6 +203,8 @@
return err
}
+// HandleViaRmr is defined but not used as of now
+/*
func (a *AlarmManager) HandleViaRmr(d alarm.Alarm, isRaiseAlarm bool) error {
alarmClient, err := alarm.InitAlarm(d.ManagedObjectId, d.ApplicationId)
if err != nil {
@@ -218,7 +220,7 @@
}
return nil
-}
+}*/
func (a *AlarmManager) SetAlarmConfig(w http.ResponseWriter, r *http.Request) {
var m alarm.AlarmConfigParams
diff --git a/manager/cmd/restapi_test.go b/manager/cmd/restapi_test.go
index bc3a79f..795fb16 100755
--- a/manager/cmd/restapi_test.go
+++ b/manager/cmd/restapi_test.go
@@ -28,7 +28,6 @@
"testing"
"github.com/stretchr/testify/assert"
-
"gerrit.o-ran-sc.org/r/ric-plt/alarm-go/alarm"
)
@@ -100,3 +99,5 @@
assert.Equal(t, true, rr != nil)
assert.Equal(t, rr.Code, http.StatusOK)
}
+
+