1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 # Modifications Copyright (C) 2019 Nordix Foundation.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 controlLoopName: ControlLoop-GENERIC-64cdc9fa-6601-4989-9de7-8f47134aa043
19 # Example of how someone can fine-grain this
20 # policy for a specific service and/or resources
21 # contained within the service.
24 - serviceName: vFooService
36 trigger_policy: unique-policy-id-1-restart
39 # Example of case where an abatement isn't possible
40 # from DCAE to Policy. So Policy should NOT expect
46 - id: unique-policy-id-1-restart
55 success: unique-policy-id-1-healthdiagnostic
56 failure: unique-policy-id-2-rebuild
57 failure_timeout: unique-policy-id-2-rebuild
58 failure_retries: unique-policy-id-2-rebuild
59 failure_exception: final_failure_exception
60 failure_guard: unique-policy-id-2-rebuild
63 - id: unique-policy-id-2-rebuild
72 success: unique-policy-id-2-healthdiagnostic
73 failure: unique-policy-id-3-migrate
74 failure_timeout: unique-policy-id-3-migrate
75 failure_retries: unique-policy-id-3-migrate
76 failure_exception: final_failure_exception
77 failure_guard: unique-policy-id-3-migrate
79 - id: unique-policy-id-3-migrate
88 success: final_success
89 failure: final_failure
90 failure_timeout: final_failure_timeout
91 failure_retries: final_failure_retries
92 failure_exception: final_failure_exception
93 failure_guard: final_failure_guard
95 - id: unique-policy-id-1-healthdiagnostic
96 name: Do A Health Diagnostic
99 recipe: health-diagnostic
100 # Example of a payload
102 health-diagnostic-code: HC01234
103 health-diagnostic-code-parameters: "{\"Junk\":\"--version\",\"Junk2\":\"--help\"}"
108 success: final_success
109 failure: unique-policy-id-2-rebuild
110 failure_timeout: unique-policy-id-2-rebuild
111 failure_retries: unique-policy-id-2-rebuild
112 failure_exception: final_failure_exception
113 failure_guard: unique-policy-id-2-rebuild
116 - id: unique-policy-id-2-healthdiagnostic
117 name: Do Health Diagnostic
120 recipe: health-diagnostic
122 health-diagnostic-code: HC01234
123 health-diagnostic-code-parameters: "{\"Junk\":\"--version\",\"Junk2\":\"--help\"}"
128 success: final_success
129 failure: final_failure
130 failure_timeout: final_failure_timeout
131 failure_retries: final_failure_retries
132 failure_exception: final_failure_exception
133 failure_guard: final_failure_guard