Add missing license headers
[policy/drools-applications.git] / controlloop / common / policy-yaml / src / test / resources / v2.0.0-guard / duplicate_guard_constraint.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_vUSP_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     actor: APPC
23     recipe: Restart
24     limit_constraints:
25       #
26       - num: 5
27         time_in_range:
28           arg2: PT5H
29           arg3: PT24H
30       #
31       - num: 5
32         time_in_range:
33           arg2: PT5H
34           arg3: PT24H