X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ricxappframe%2Falarm%2Falarm-schema.json;fp=ricxappframe%2Falarm%2Falarm-schema.json;h=5e999ad531a513b7839d66766c140dfb907772b0;hb=81084bc31ea1d5cde6616dd2267ea01f49a1d6d1;hp=0000000000000000000000000000000000000000;hpb=884192bf7ab8d637e8007760fbe50dbcdccd4671;p=ric-plt%2Fxapp-frame-py.git diff --git a/ricxappframe/alarm/alarm-schema.json b/ricxappframe/alarm/alarm-schema.json new file mode 100644 index 0000000..5e999ad --- /dev/null +++ b/ricxappframe/alarm/alarm-schema.json @@ -0,0 +1,94 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/alarm-go.json", + "type": "object", + "title": "Alarm schema", + "description": "Schema for RIC alarm messages.", + "default": {}, + "examples": [ + { + "managedObjectId": "my-pod-lib", + "applicationId": "my-app", + "specificProblem": 1234, + "perceivedSeverity": "MAJOR", + "additionalInfo": "Some App data", + "identifyingInfo": "eth 0 1", + "AlarmAction": "RAISE", + "AlarmTime": 1591188407505707 + } + ], + "required": [ + "managedObjectId", + "applicationId", + "specificProblem", + "perceivedSeverity", + "identifyingInfo", + "AlarmAction", + "AlarmTime" + ], + "additionalProperties": true, + "properties": { + "managedObjectId": { + "type": "string", + "title": "The managedObjectId schema", + "description": "The name of the managed object that is the cause of the fault.", + "default": "" + }, + "applicationId": { + "type": "string", + "title": "The applicationId schema", + "description": "The name of the process that raised the alarm.", + "default": "" + }, + "specificProblem": { + "type": "integer", + "title": "The specificProblem schema", + "description": "The problem that is the cause of the alarm.", + "default": 0 + }, + "perceivedSeverity": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "CRITICAL", + "MAJOR", + "MINOR", + "WARNING", + "CLEARED", + "DEFAULT" + ], + "title": "The perceivedSeverity schema", + "description": "The severity of the alarm.", + "default": "" + }, + "additionalInfo": { + "type": "string", + "title": "The additionalInfo schema", + "description": "Additional information given by the application (optional).", + "default": "" + }, + "identifyingInfo": { + "type": "string", + "title": "The identifyingInfo schema", + "description": "Identifying additional information, which is part of alarm identity.", + "default": "" + }, + "AlarmAction": { + "type": "string", + "enum": [ + "RAISE", + "CLEAR", + "CLEARALL" + ], + "title": "The AlarmAction schema", + "description": "Action to perform on the alarm.", + "default": "" + }, + "AlarmTime": { + "type": "integer", + "title": "The AlarmTime schema", + "description": "Current system time in milliseconds since the Epoch.", + "default": 0 + } + } +}