Example xApp: take the new xApp descriptor into use
Change-Id: I5669eda4621bb0e99f4d34b5712c389e41dbce8b
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
diff --git a/examples/config/config-file.json b/examples/config/config-file.json
index bfd885c..8caecdb 100755
--- a/examples/config/config-file.json
+++ b/examples/config/config-file.json
@@ -1,41 +1,109 @@
{
- "local": {
- "host": ":8080"
+ "name": "example",
+ "version": "0.6.0",
+ "vendor": "Nokia",
+ "moId": "SEP",
+ "containers": [
+ {
+ "name": "example",
+ "image": {
+ "registry": "ranco-dev-tools.eastus.cloudapp.azure.com:10001",
+ "name": "example-xapp",
+ "tag": "0.5.3"
+ },
+ "resources": {
+ "limits": {
+ "cpu": "1",
+ "memory": "50Mi"
+ },
+ "requests": {
+ "cpu": "1",
+ "memory": "100Mi"
+ }
+ }
+ }
+ ],
+ "livenessProbe": {
+ "httpGet": {
+ "path": "ric/v1/health/alive",
+ "port": 8080
+ },
+ "initialDelaySeconds": 5,
+ "periodSeconds": 15
},
- "logger": {
- "level": 3
+ "readinessProbe": {
+ "httpGet": {
+ "path": "ric/v1/health/ready",
+ "port": 8080
+ },
+ "initialDelaySeconds": 5,
+ "periodSeconds": 15
},
- "db": {
- "namespace": "sdl",
- "waitForSdl": true
+ "messaging": {
+ "ports": [
+ {
+ "name": "http",
+ "container": "example",
+ "port": 8080,
+ "description": "http service"
+ },
+ {
+ "name": "rmr-route",
+ "container": "example",
+ "port": 4561,
+ "description": "rmr route port for example"
+ },
+ {
+ "name": "rmr-data",
+ "container": "example",
+ "port": 4560,
+ "maxSize": 65536,
+ "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"],
+ "mtypes" : [
+ {"name":"TESTNAME1","id":55555},
+ {"name":"TESTNAME2","id":55556}
+ ],
+ "policies": [],
+ "description": "rmr data port for example"
+ }
+ ]
},
"controls": {
- "subscriptionActive": true
- },
- "rmr": {
- "protPort": "tcp:4560",
- "maxSize": 65536,
- "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"],
- "mtypes" : [
- {"name":"TESTNAME1","id":55555},
- {"name":"TESTNAME2","id":55556}
- ]
- },
- "metrics": [
- {
- "objectName": "UEEventStreamingCounters",
- "objectInstance": "SgNBAdditionRequest",
- "name": "ricxapp_ExampleXapp_SgNBAdditionRequest",
- "type": "counter",
- "description": "The total number of SG addition request events processed"
+ "logger": {
+ "level": 3
},
+ "subscription": {
+ "subscriptionActive": true
+ }
+ },
+ "metrics": {
+ "url": "/ric/v1/metrics",
+ "namespace": "ricxapp"
+ },
+ "faults": { },
+ "measurements": [
{
- "objectName": "UEEventStreamingCounters",
- "objectInstance": "SgNBAdditionRequestAcknowledge",
- "name": "ricxapp_ExampleXapp_SgNBAdditionRequestAcknowledge",
- "type": "counter",
- "description": "The total number of SG addition request acknowledge events"
+ "moId": "XAPP-example",
+ "measType": "X2AP_Streaming",
+ "measId": "91001",
+ "measInterval": "60",
+ "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"
+ }
+ ]
}
]
}