7d694eb8b7880d2daf28ceb179695781e6ed62ac
[clamp.git] / src / test / resources / http-cache / example / policy / api / v1 / policytypes / onap.policies.controlloop.operational.common.Apex / versions / 1.0.0?connectionTimeToLive=5000 / .file
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 policy_types:
3     onap.policies.controlloop.operational.common.Apex:
4         derived_from: onap.policies.controlloop.operational.Common
5         type_version: 1.0.0
6         version: 1.0.0
7         description: Operational policies for Apex PDP
8         properties:
9             engineServiceParameters:
10                 type: string
11                 description: The engine parameters like name, instanceCount, policy implementation, parameters etc.
12                 required: true
13             eventInputParameters:
14                 type: string
15                 description: The event input parameters.
16                 required: true
17             eventOutputParameters:
18                 type: string
19                 description: The event output parameters.
20                 required: true
21             javaProperties:
22                 type: string
23                 description: Name/value pairs of properties to be set for APEX if needed.
24                 required: false
25     onap.policies.controlloop.operational.Common:
26         derived_from: tosca.policies.Root
27         version: 1.0.0
28         description: |
29             Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
30             Policy Types. This does NOT support the legacy Policy YAML policy type.
31         properties:
32             id:
33                 type: string
34                 description: The unique control loop id.
35                 required: true
36             timeout:
37                 type: integer
38                 description: |
39                     Overall timeout for executing all the operations. This timeout should equal or exceed the total
40                     timeout for each operation listed.
41                 required: true
42             abatement:
43                 type: boolean
44                 description: Whether an abatement event message will be expected for the control loop from DCAE.
45                 required: true
46                 default: false
47             trigger:
48                 type: string
49                 description: Initial operation to execute upon receiving an Onset event message for the Control Loop.
50                 required: true
51             operations:
52                 type: list
53                 description: List of operations to be performed when Control Loop is triggered.
54                 required: true
55                 entry_schema:
56                     type: onap.datatype.controlloop.Operation
57 data_types:
58     onap.datatype.controlloop.Target:
59         derived_from: tosca.datatypes.Root
60         description: Definition for a entity in A&AI to perform a control loop operation on
61         properties:
62             targetType:
63                 type: string
64                 description: Category for the target type
65                 required: true
66                 constraints:
67                 - valid_values: [VNF, VM, VFMODULE, PNF]
68             entityIds:
69                 type: map
70                 description: |
71                     Map of values that identify the resource. If none are provided, it is assumed that the
72                     entity that generated the ONSET event will be the target.
73                 required: false
74                 metadata:
75                     clamp_possible_values: test
76                 entry_schema:
77                     type: string
78
79     onap.datatype.controlloop.Actor:
80         derived_from: tosca.datatypes.Root
81         description: An actor/operation/target definition
82         properties:
83             actor:
84                 type: string
85                 description: The actor performing the operation.
86                 required: true
87                 metadata:
88                     clamp_possible_values: test
89             operation:
90                 type: string
91                 description: The operation the actor is performing.
92                 required: true
93                 metadata:
94                     clamp_possible_values: test
95             target:
96                 type: onap.datatype.controlloop.Target
97                 description: The resource the operation should be performed on.
98                 required: true
99                 metadata:
100                     clamp_possible_values: test
101             payload:
102                 type: map
103                 description: Name/value pairs of payload information passed by Policy to the actor
104                 required: false
105                 entry_schema:
106                     type: string
107
108     onap.datatype.controlloop.Operation:
109         derived_from: tosca.datatypes.Root
110         description: An operation supported by an actor
111         properties:
112             id:
113                 type: string
114                 description: Unique identifier for the operation
115                 required: true
116             description:
117                 type: string
118                 description: A user-friendly description of the intent for the operation
119                 required: false
120             operation:
121                 type: onap.datatype.controlloop.Actor
122                 description: The definition of the operation to be performed.
123                 required: true
124             timeout:
125                 type: integer
126                 description: The amount of time for the actor to perform the operation.
127                 required: true
128             retries:
129                 type: integer
130                 description: The number of retries the actor should attempt to perform the operation.
131                 required: true
132                 default: 0
133             success:
134                 type: string
135                 description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
136                 required: false
137                 default: final_success
138             failure:
139                 type: string
140                 description: Points to the operation to invoke on Actor operation failure.
141                 required: false
142                 default: final_failure
143             failure_timeout:
144                 type: string
145                 description: Points to the operation to invoke when the time out for the operation occurs.
146                 required: false
147                 default: final_failure_timeout
148             failure_retries:
149                 type: string
150                 description: Points to the operation to invoke when the current operation has exceeded its max retries.
151                 required: false
152                 default: final_failure_retries
153             failure_exception:
154                 type: string
155                 description: Points to the operation to invoke when the current operation causes an exception.
156                 required: false
157                 default: final_failure_exception
158             failure_guard:
159                 type: string
160                 description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
161                 required: false
162                 default: final_failure_guard