Add missing license headers
[policy/drools-applications.git] / controlloop / templates / template.demo / src / test / resources / yaml / policy_guard_appc_modifyconfig.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_6
19     name: APPC 6 ModifyConfig
20     description: |
21       We only allow 2 ModifyConfig over 10 minute window during the day time hours (avoid midnight to 5am)
22     match_parameters:
23       controlLoopName: ControlLoop-Service123-cbed919f-2212-4ef7-8051-fe6308da1bda
24       actor: APPC
25       recipe: ModifyConfig
26       targets:
27         - s1
28         - s2
29         - foobartriggersource36
30         - s3
31         - testGenericVnfName
32     limit_constraints:
33       - freq_limit_per_target: 1  
34         time_window:
35           value: 10
36           units: minute
37         active_time_range:
38           start: 00:00:00-05:00
39           end: 23:59:59-05:00