02bc86454c77ad7a7414f053b641c210d6849915
[nonrtric.git] / policy-agent / src / test / resources / policy_types / demo-policy-schema-1.json
1 {
2   "$schema": "http://json-schema.org/draft-07/schema#",
3   "title": "STD_PolicyModelUnconstrained_0.2.0",
4   "description": "Standard model of a policy with unconstrained scope id combinations",
5   "type": "object",
6   "properties": {
7     "scope": {
8       "type": "object",
9       "properties": {
10         "ueId": {"type": "string"},
11         "groupId": {"type": "string"},
12         "sliceId": {"type": "string"},
13         "qosId": {"type": "string"},
14         "cellId": {"type": "string"}
15       },
16       "minProperties": 1,
17       "additionalProperties": false
18     },
19     "qosObjectives": {
20       "type": "object",
21       "properties": {
22         "gfbr": {"type": "number"},
23         "mfbr": {"type": "number"},
24         "priorityLevel": {"type": "number"},
25         "pdb": {"type": "number"}
26       },
27       "additionalProperties": false
28     },
29     "qoeObjectives": {
30       "type": "object",
31       "properties": {
32         "qoeScore": {"type": "number"},
33         "initialBuffering": {"type": "number"},
34         "reBuffFreq": {"type": "number"},
35         "stallRatio": {"type": "number"}
36       },
37       "additionalProperties": false
38     },
39     "resources": {
40       "type": "array",
41       "items": {
42         "type": "object",
43         "properties": {
44           "cellIdList": {
45             "type": "array",
46             "minItems": 1,
47             "uniqueItems": true,
48             "items": {
49               "type": "string"
50             }
51           },
52           "preference": {
53             "type": "string",
54             "enum": [
55               "SHALL",
56               "PREFER",
57               "AVOID",
58               "FORBID"
59             ]
60           },
61           "primary": {"type": "boolean"}
62         },
63         "additionalProperties": false,
64         "required": ["cellIdList", "preference"]
65       }
66     }
67   },
68   "minProperties": 2,
69   "additionalProperties": false,
70   "required": ["scope"]
71 }