Added callback to R-APPS invoked after RIC recovery
[nonrtric.git] / policy-agent / src / test / resources / policy_types / demo-policy-schema-1.json
index fa7410f..02bc864 100644 (file)
@@ -1,42 +1,71 @@
 {
   "$schema": "http://json-schema.org/draft-07/schema#",
-  "title": "Example_QoSTarget_1.0.0",
-  "description": "Example QoS Target policy type",
+  "title": "STD_PolicyModelUnconstrained_0.2.0",
+  "description": "Standard model of a policy with unconstrained scope id combinations",
   "type": "object",
   "properties": {
     "scope": {
       "type": "object",
       "properties": {
-        "qosId": {
-          "type": "string"
-        },
-        "cellId": {
-          "type": "string"
-        }
+        "ueId": {"type": "string"},
+        "groupId": {"type": "string"},
+        "sliceId": {"type": "string"},
+        "qosId": {"type": "string"},
+        "cellId": {"type": "string"}
       },
-      "additionalProperties": false,
-      "required": [
-        "qosId"
-      ]
+      "minProperties": 1,
+      "additionalProperties": false
     },
-    "statement": {
+    "qosObjectives": {
       "type": "object",
       "properties": {
-        "gfbr": {
-          "type": "number"
-        },
-        "mfbr": {
-          "type": "number"
-        },
-        "priorityLevel": {
-          "type": "number"
-        },
-        "pdb": {
-          "type": "number"
-        }
+        "gfbr": {"type": "number"},
+        "mfbr": {"type": "number"},
+        "priorityLevel": {"type": "number"},
+        "pdb": {"type": "number"}
       },
-      "minProperties": 1,
       "additionalProperties": false
+    },
+    "qoeObjectives": {
+      "type": "object",
+      "properties": {
+        "qoeScore": {"type": "number"},
+        "initialBuffering": {"type": "number"},
+        "reBuffFreq": {"type": "number"},
+        "stallRatio": {"type": "number"}
+      },
+      "additionalProperties": false
+    },
+    "resources": {
+      "type": "array",
+      "items": {
+        "type": "object",
+        "properties": {
+          "cellIdList": {
+            "type": "array",
+            "minItems": 1,
+            "uniqueItems": true,
+            "items": {
+              "type": "string"
+            }
+          },
+          "preference": {
+            "type": "string",
+            "enum": [
+              "SHALL",
+              "PREFER",
+              "AVOID",
+              "FORBID"
+            ]
+          },
+          "primary": {"type": "boolean"}
+        },
+        "additionalProperties": false,
+        "required": ["cellIdList", "preference"]
+      }
     }
-  }
-}
\ No newline at end of file
+  },
+  "minProperties": 2,
+  "additionalProperties": false,
+  "required": ["scope"]
+}