60c73faee757eb437e1f8722b1e6d0dc53e1295c
[optf/osdf.git] / examples / policies / policy_types / threshold.json
1 {
2   "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
3   "policy_types": {
4     "onap.policies.optimization.resource.ThresholdPolicy": {
5       "derived_from": "onap.policies.optimization.Resource",
6       "version": "1.0.0",
7       "properties": {
8         "applicableResources": {
9           "type": "list",
10           "required": true,
11           "entry_schema": {
12             "type": "string",
13             "constraints": [
14               {
15                 "valid_values": [
16                   "any",
17                   "all"
18                 ]
19               }
20             ]
21           }
22         },
23         "thresholdProperties": {
24           "type": "list",
25           "required": true,
26           "entry_schema": {
27             "type": "policy.data.thresholdProperties_properties"
28           }
29         }
30       }
31     }
32   },
33   "data_types": {
34     "policy.data.thresholdProperties_properties": {
35       "derived_from": "tosca.nodes.Root",
36       "properties": {
37         "attribute": {
38           "type": "string",
39           "required": true
40         },
41         "operator": {
42           "type": "string",
43           "required": true
44         },
45         "threshold": {
46           "type": "float",
47           "required": true
48         },
49         "unit": {
50           "type": "string",
51           "required": false
52         }
53       }
54     }
55   }
56 }