Add missing license headers
[policy/drools-applications.git] / controlloop / templates / template.demo / src / test / resources / yaml / policy_ControlLoop_Service123.yaml
1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 controlLoop:
15   version: 2.0.0
16   controlLoopName: ControlLoop-Service123-cbed919f-2212-4ef7-8051-fe6308da1bda
17   services: 
18     - serviceName: Service123
19   resources: 
20     - resourceName: res1
21       resourceType: VFC
22     - resourceName: res2
23       resourceType: VFC
24   trigger_policy: unique-policy-id-1-restart
25   timeout: 60
26   abatement: true
27
28 policies:
29   - id: unique-policy-id-1-restart
30     name: Restart Policy
31     description:
32     actor: APPC
33     recipe: Restart
34     target:
35       type: VM
36     retry: 3
37     timeout: 20
38     success: final_success
39     failure: unique-policy-id-2-rebuild
40     failure_timeout: unique-policy-id-2-rebuild
41     failure_retries: unique-policy-id-2-rebuild
42     failure_guard: unique-policy-id-2-rebuild
43     failure_exception: final_failure_exception
44   
45   - id: unique-policy-id-2-rebuild
46     name: Rebuild Policy
47     description:
48     actor: APPC
49     recipe: Rebuild
50     target:
51         type: VM
52     retry: 0
53     timeout: 10
54     success: final_success
55     failure: unique-policy-id-3-migrate
56     failure_timeout: unique-policy-id-3-migrate
57     failure_retries: unique-policy-id-3-migrate
58     failure_guard: unique-policy-id-3-migrate
59     failure_exception: final_failure_exception
60   
61   - id: unique-policy-id-3-migrate
62     name: Migrate Policy
63     description:
64     actor: APPC
65     recipe: Migrate
66     target:
67         type: VM
68     retry: 0
69     timeout: 30
70     success: final_success
71     failure: final_failure
72     failure_timeout: final_failure_timeout
73     failure_retries: final_failure_retries
74     failure_guard: final_failure_guard
75     failure_exception: final_failure_exception