X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Ftest%2Fresources%2Fpolicy_types%2Fdemo-policy-schema-1.json;h=02bc86454c77ad7a7414f053b641c210d6849915;hb=7a4a590fb0ebf8772169625cdda327da43c79c6d;hp=fa7410fba5e6efa7e86196bf00d41a9358770a3b;hpb=bbc4aa48f60dc70154ff07c2143918053f1c9154;p=nonrtric.git diff --git a/policy-agent/src/test/resources/policy_types/demo-policy-schema-1.json b/policy-agent/src/test/resources/policy_types/demo-policy-schema-1.json index fa7410fb..02bc8645 100644 --- a/policy-agent/src/test/resources/policy_types/demo-policy-schema-1.json +++ b/policy-agent/src/test/resources/policy_types/demo-policy-schema-1.json @@ -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"] +}