Sonar Fixes policy/models, removing model-yaml
[policy/models.git] / models-interactions / model-yaml / src / test / resources / v2.0.0-guard / duplicate_guard_constraint.yaml
1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 # Modifications Copyright (C) 2019 Nordix Foundation.
3 #
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
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 guard:
16   version: 2.0.0
17
18 guards:
19   - id: unique_guard_vUSP_1
20     name: APPC 5 Restart
21     description: 
22       We only allow 5 restarts over 15 minute window during the day time hours (i.e. avoid midnight to 5am)
23     actor: APPC
24     recipe: Restart
25     limit_constraints:
26       #
27       - num: 5
28         time_in_range:
29           arg2: PT5H
30           arg3: PT24H
31       #
32       - num: 5
33         time_in_range:
34           arg2: PT5H
35           arg3: PT24H