Update example-xapp
Change-Id: I3e9e8e9d6ea92e32b626bc9a156b821030f298ae
Signed-off-by: Abukar Mohamed <abukar.mohamed@nokia.com>
diff --git a/examples/config/config-file.json b/examples/config/config-file.json
new file mode 100755
index 0000000..e9f412a
--- /dev/null
+++ b/examples/config/config-file.json
@@ -0,0 +1,38 @@
+{
+ "local": {
+ "host": ":8080"
+ },
+ "logger": {
+ "level": 3
+ },
+ "db": {
+ "namespace": "sdl",
+ "waitForSdl": true
+ },
+ "controls": {
+ "subscriptionActive": true
+ },
+ "rmr": {
+ "protPort": "tcp:4560",
+ "maxSize": 65536,
+ "numWorkers": 1,
+ "rxMessages": ["RIC_SUB_RESP", "RIC_SUB_FAILURE", "RIC_SUB_DEL_RESP", "RIC_INDICATION"],
+ "txMessages": ["RIC_SUB_REQ", "RIC_SUB_DEL_REQ", "RIC_SGNB_ADDITION_REQ", "RIC_SGNB_ADDITION_ACK"]
+ },
+ "metrics": [
+ {
+ "objectName": "UEEventStreamingCounters",
+ "objectInstance": "SgNBAdditionRequest",
+ "name": "ricxapp_ExampleXapp_SgNBAdditionRequest",
+ "type": "counter",
+ "description": "The total number of SG addition request events processed"
+ },
+ {
+ "objectName": "UEEventStreamingCounters",
+ "objectInstance": "SgNBAdditionRequestAcknowledge",
+ "name": "ricxapp_ExampleXapp_SgNBAdditionRequestAcknowledge",
+ "type": "counter",
+ "description": "The total number of SG addition request acknowledge events"
+ }
+ ]
+}
diff --git a/examples/config/schema.json b/examples/config/schema.json
new file mode 100755
index 0000000..10e9243
--- /dev/null
+++ b/examples/config/schema.json
@@ -0,0 +1,21 @@
+{
+ "definitions": {},
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "http://example.com/root.json",
+ "type": "object",
+ "title": "The Root Schema",
+ "required": [
+ "subscriptionActive"
+ ],
+ "properties": {
+ "subscriptionActive": {
+ "$id": "#/properties/subscriptionActive",
+ "type": "boolean",
+ "title": "The Active Schema",
+ "default": false,
+ "examples": [
+ true
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/config/uta_rtg.rt b/examples/config/uta_rtg.rt
new file mode 100755
index 0000000..2b08655
--- /dev/null
+++ b/examples/config/uta_rtg.rt
@@ -0,0 +1,4 @@
+newrt|start
+rte|10004|localhost:4560
+rte|10005|localhost:4591
+newrt|end