Add sample policies in OSDF repo
[optf/osdf.git] / examples / policies / nssi_policies / threshold_nssi.json
1 {
2    "Threshold_{{ service_name }}":{
3       "metadata":{
4          "policy-id":"Threshold_{{ service_name }}",
5          "policy-version":1
6       },
7       "properties":{
8          "geography":[
9
10          ],
11          "identity":"Threshold_{{ service_name }}",
12          "resources":[
13             "{{ service_name }}"
14          ],
15          "scope":[
16             "OSDF_GUILIN"
17          ],
18          "services":[
19             "{{ service_name }}"
20          ],
21          "thresholdProperties":[
22             {
23                "attribute":"latency",
24                "operator":"lte",
25                "threshold":{
26                   "get_param":"latency"
27                },
28                "unit":"ms"
29             },
30             {
31                "attribute":"reliability",
32                "operator":"gte",
33                "threshold":{
34                   "get_param":"reliability"
35                },
36                "unit":""
37             }
38          ]
39       },
40       "type":"onap.policies.optimization.resource.ThresholdPolicy",
41       "type_version":"1.0.0",
42       "version":"1.0.0"
43    }
44 }