Commit includes ControlLoopPolicy API and bugfixes
[policy/engine.git] / ECOMP-ControlloopPolicy / src / test / resources / v2.0.0-guard / duplicate_guard_policy.yaml
1 guard:
2   version: 2.0.0
3
4 guards:
5   - id: unique_guard_vUSP_1
6     name: APPC 5 Restart
7     description: 
8       We only allow 5 restarts over 15 minute window during the day time hours (i.e. avoid midnight to 5am)
9     actor: APPC
10     recipe: Restart
11     limit_constraints:
12       - num: 5
13         time_in_range:
14           arg2: PT5H
15           arg3: PT24H
16   #
17   - id: unique_guard_vUSP_1
18     name: APPC 5 Restart
19     description: 
20       We only allow 5 restarts over 15 minute window during the day time hours (i.e. avoid midnight to 5am)
21     actor: APPC
22     recipe: Restart
23     limit_constraints:
24       - num: 5
25         time_in_range:
26           arg2: PT5H
27           arg3: PT24H