3eb6155356e32547ba662ce2d74daaa46e179474
[policy/drools-applications.git] / controlloop / common / policy-yaml / src / test / resources / v2.0.0-guard / policy_guard_appc_restart.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 guard:
15   version: 2.0.0
16
17 guards:
18   - id: unique_guard_1
19     name: APPC 5 Restart
20     description: 
21       We only allow 5 restarts over 15 minute window during the day time hours (i.e. avoid midnight to 5am)
22     match_parameters:
23       controlLoopName: CL_NAME_ABC_123
24       actor: APPC
25       recipe: Restart
26       targets:
27         - s1
28           s2
29           s3
30     limit_constraints:
31       - freq_limit_per_target: 5
32         time_window: 
33           value: 15
34           units: minute
35         active_time_range:
36           start: 00:00:00-05:00
37           end: 23:59:59-05:00