Add multi-layer RIC instance selector
[portal/ric-dashboard.git] / webapp-backend / src / test / resources / rate-control-policy-type.json
1 {
2         "name": "Policy for Rate Control",
3         "policy_type_id": 21000,
4         "description": "This policy is associated with rate control. An instance of the policy specifies the traffic class to which it applies and parameters to use to control how much it must be throttled in case of an overload. Each instance of the policy that is created MUST be associated with a unique class ID (identifyed by the key 'class', which is used by the xAPP to differentiate traffic. If an agent tries to create a policy with the SAME class id, it will be rejected by the xAPP, even if it has a unique policy instance id. ",
5         "create_schema": {
6                 "$schema": "http://json-schema.org/draft-07/schema#",
7                 "type": "object",
8                 "additionalProperties": false,
9                 "properties": {
10                         "class": {
11                                 "type": "integer",
12                                 "minimum": 1,
13                                 "maximum": 256,
14                                 "description": "integer id representing class to which we are applying policy"
15                         },
16                         "enforce": {
17                                 "type": "boolean",
18                                 "description": "Whether to enable or disable enforcement of policy on this class"
19                         },
20                         "window_length": {
21                                 "type": "integer",
22                                 "minimum": 15,
23                                 "maximum": 300,
24                                 "description": "Sliding window length in seconds"
25                         },
26                         "trigger_threshold": {
27                                 "type": "integer",
28                                 "minimum": 1
29                         },
30                         "blocking_rate": {
31                                 "type": "number",
32                                 "minimum": 0,
33                                 "maximum": 100
34                         }
35                 },
36                 "required": [
37                         "class",
38                         "enforce",
39                         "blocking_rate",
40                         "trigger_threshold",
41                         "window_length"
42                 ]
43         }
44 }