da2e5fe1df778d91b4767eed36c074a5895e7fdc
[optf/osdf.git] / examples / policies / nst_policies / attribute_policy_nst.json
1 {
2    "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
3    "topology_template": {
4       "policies": [
5 {
6     "Threshold_nst": {
7         "metadata": {
8             "policy-id": "Threshold_nst",
9             "policy-version": 1
10         },
11         "properties": {
12             "geography": [],
13             "identity": "nst_Threshold",
14             "resources": [
15                 "nst"
16             ],
17             "scope": [
18                 "OSDF_GUILIN"
19             ],
20             "services": [
21                 "nst"
22             ],
23             "thresholdProperties": [
24                 {
25                     "attribute": "latency",
26                     "operator": "lte",
27                     "threshold": {
28                         "get_param": "latency"
29                     },
30                     "unit": "ms"
31                 }
32             ]
33         },
34         "type": "onap.policies.optimization.resource.ThresholdPolicy",
35         "type_version": "1.0.0",
36         "version": "1.0.0"
37     }
38 }
39       ]
40    }
41 }