Vidyashree Rama | 7c2f2b8 | 2019-09-25 11:58:19 +0530 | [diff] [blame^] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0_0 |
| 2 | policy_types: |
| 3 | onap.policies.Monitoring: |
| 4 | derived_from: tosca.policies.Root |
| 5 | description: a base policy type for all policies that governs monitoring provisioning |
| 6 | onap.policies.monitoring.example.app: |
| 7 | derived_from: onap.policies.Monitoring |
| 8 | version: 1.0.0 |
| 9 | properties: |
| 10 | example_policy: |
| 11 | type: map |
| 12 | description: Properties with constraints |
| 13 | entry_schema: |
| 14 | type: onap.datatypes.monitoring.example_policy |
| 15 | data_types: |
| 16 | onap.datatypes.monitoring.example_policy: |
| 17 | derived_from: tosca.datatypes.Root |
| 18 | properties: |
| 19 | cpus: |
| 20 | type: string |
| 21 | required: true |
| 22 | default: 1 |
| 23 | constraints: |
| 24 | - in_range: [ 1, 4 ] |
| 25 | ports: |
| 26 | type: integer |
| 27 | constraints: |
| 28 | - in_range: [ 9000, 9010 ] |
| 29 | memSize: |
| 30 | type: integer |
| 31 | required: true |
| 32 | description: memory size |
| 33 | constraints: |
| 34 | - greater_or_equal: 2 |
| 35 | - less_or_equal: 10 |
| 36 | appPassword: |
| 37 | type: string |
| 38 | description: application password |
| 39 | constraints: |
| 40 | - min_length: 6 |
| 41 | - max_length: 10 |
| 42 | cost: |
| 43 | type: float |
| 44 | constraints: |
| 45 | - less_than: 100.50 |
| 46 | - greater_than: 50.50 |
| 47 | algorithm: |
| 48 | type: string |
| 49 | constraints: |
| 50 | - equal: aes |
| 51 | keylength: |
| 52 | type: integer |
| 53 | constraints: |
| 54 | - valid_values: [ 128, 256 ] |