1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 controlLoopName: ControlLoop-GENERIC-64cdc9fa-6601-4989-9de7-8f47134aa043
18 # Example of how someone can fine-grain this
19 # policy for a specific service and/or resources
20 # contained within the service.
23 - serviceName: vFooService
35 trigger_policy: unique-policy-id-1-restart
38 # Example of case where an abatement isn't possible
39 # from DCAE to Policy. So Policy should NOT expect
45 - id: unique-policy-id-1-restart
54 success: unique-policy-id-1-healthdiagnostic
55 failure: unique-policy-id-2-rebuild
56 failure_timeout: unique-policy-id-2-rebuild
57 failure_retries: unique-policy-id-2-rebuild
58 failure_exception: final_failure_exception
59 failure_guard: unique-policy-id-2-rebuild
62 - id: unique-policy-id-2-rebuild
71 success: unique-policy-id-2-healthdiagnostic
72 failure: unique-policy-id-3-migrate
73 failure_timeout: unique-policy-id-3-migrate
74 failure_retries: unique-policy-id-3-migrate
75 failure_exception: final_failure_exception
76 failure_guard: unique-policy-id-3-migrate
78 - id: unique-policy-id-3-migrate
87 success: final_success
88 failure: final_failure
89 failure_timeout: final_failure_timeout
90 failure_retries: final_failure_retries
91 failure_exception: final_failure_exception
92 failure_guard: final_failure_guard
94 - id: unique-policy-id-1-healthdiagnostic
95 name: Do A Health Diagnostic
98 recipe: health-diagnostic
99 # Example of a payload
101 health-diagnostic-code: HC01234
102 health-diagnostic-code-parameters: "{\"Junk\":\"--version\",\"Junk2\":\"--help\"}"
107 success: final_success
108 failure: unique-policy-id-2-rebuild
109 failure_timeout: unique-policy-id-2-rebuild
110 failure_retries: unique-policy-id-2-rebuild
111 failure_exception: final_failure_exception
112 failure_guard: unique-policy-id-2-rebuild
115 - id: unique-policy-id-2-healthdiagnostic
116 name: Do Health Diagnostic
119 recipe: health-diagnostic
121 health-diagnostic-code: HC01234
122 health-diagnostic-code-parameters: "{\"Junk\":\"--version\",\"Junk2\":\"--help\"}"
127 success: final_success
128 failure: final_failure
129 failure_timeout: final_failure_timeout
130 failure_retries: final_failure_retries
131 failure_exception: final_failure_exception
132 failure_guard: final_failure_guard