add aggregation policy for NSI selection
[optf/osdf.git] / osdf / models / policy / placement / tosca_upload / onap.policies.optimization.resource.AggregationPolicy.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 policy_types:
3   onap.policies.optimization.resource.AggregationPolicy:
4     derived_from: onap.policies.optimization.Resource
5     version: 1.0.0
6     properties:
7       applicableResources:
8         type: list
9         required: true
10         entry_schema:
11           type: string
12           constraints:
13           - valid_values:
14             - any
15             - all
16       aggregationProperties:
17         type: list
18         required: true
19         entry_schema:
20           type: policy.data.aggregationProperties_properties
21 data_types:
22   policy.data.aggregationProperties_properties:
23     derived_from: tosca.nodes.Root
24     properties:
25       attribute:
26         type: string
27         required: true
28       operator:
29         type: string
30         required: true
31       threshold:
32         type: policy.data.thresh_properties
33         required: true
34       unit:
35         type: string
36         required: false
37       function:
38         type: string
39         required: true
40   policy.data.thresh_properties:
41     derived_from: tosca.nodes.Root
42