summaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src/test/resources/policy_types/demo-policy-schema-1.json
blob: 02bc86454c77ad7a7414f053b641c210d6849915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "STD_PolicyModelUnconstrained_0.2.0",
  "description": "Standard model of a policy with unconstrained scope id combinations",
  "type": "object",
  "properties": {
    "scope": {
      "type": "object",
      "properties": {
        "ueId": {"type": "string"},
        "groupId": {"type": "string"},
        "sliceId": {"type": "string"},
        "qosId": {"type": "string"},
        "cellId": {"type": "string"}
      },
      "minProperties": 1,
      "additionalProperties": false
    },
    "qosObjectives": {
      "type": "object",
      "properties": {
        "gfbr": {"type": "number"},
        "mfbr": {"type": "number"},
        "priorityLevel": {"type": "number"},
        "pdb": {"type": "number"}
      },
      "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"]
      }
    }
  },
  "minProperties": 2,
  "additionalProperties": false,
  "required": ["scope"]
}