WeberLaurent | f0a648c | 2020-02-06 10:23:01 +0100 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0_0
|
| 2 | policy_types:
|
| 3 | onap.policies.controlloop.operational.common.Drools:
|
| 4 | derived_from: onap.policies.controlloop.operational.Common
|
| 5 | type_version: 1.0.0
|
| 6 | version: 1.0.0
|
| 7 | description: Operational policies for Drools PDP
|
| 8 | properties:
|
| 9 | controllerName:
|
| 10 | type: String
|
| 11 | description: Drools controller properties
|
| 12 | required: true
|
| 13 | data_types:
|
| 14 | onap.datatype.controlloop.Operation:
|
| 15 | derived_from: tosca.datatypes.Root
|
| 16 | description: An operation supported by an actor
|
| 17 | properties:
|
| 18 | id:
|
| 19 | type: String
|
| 20 | description: Unique identifier for the operation
|
| 21 | required: true
|
| 22 | constraints:
|
| 23 | - length: 8
|
| 24 | description:
|
| 25 | type: Array
|
| 26 | description: A user-friendly description of the intent for the operation
|
| 27 | required: false
|
| 28 | constraints:
|
| 29 | - min_length: 5
|
| 30 | - max_length: 7
|
| 31 | test:
|
| 32 | type: Integer
|
| 33 | description: |
|
| 34 | Overall timeout for executing all the operations. This timeout should equal or exceed the total
|
| 35 | timeout for each operation listed.
|
| 36 | required: true
|
| 37 | constraints:
|
| 38 | - greater_than: 7
|
| 39 | - greater_or_equal: 1
|
| 40 | - less_than: 7
|
| 41 | - less_or_equal: 1
|
| 42 | timeout:
|
| 43 | type: Integer
|
| 44 | description: The amount of time for the actor to perform the operation.
|
| 45 | required: true
|
| 46 | constraints:
|
| 47 | - valid_values: [3,4,5.5,6,10]
|
| 48 | retries:
|
| 49 | type: Integer
|
| 50 | description: The number of retries the actor should attempt to perform the operation.
|
| 51 | required: true
|
| 52 | default: 0
|
| 53 | constraints:
|
| 54 | - equal: 5
|
| 55 | success:
|
| 56 | type: String
|
| 57 | description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
|
| 58 | required: false
|
| 59 | constraints:
|
| 60 | - valid_values: [VALID,TERMINATED]
|