remove dependency of drool-application/yaml in actors
[policy/models.git] / models-interactions / model-yaml / src / test / resources / v2.0.0-guard / policy_guard_appc_restart.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_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     match_parameters:
24       controlLoopName: CL_NAME_ABC_123
25       actor: APPC
26       recipe: Restart
27       targets:
28         - s1
29           s2
30           s3
31     limit_constraints:
32       - freq_limit_per_target: 5
33         time_window: 
34           value: 15
35           units: minute
36         active_time_range:
37           start: 00:00:00-05:00
38           end: 23:59:59-05:00