Code Review
/
policy
/
drools-applications.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
36b971fee6d109b98441d4167936d59559a2a926
[policy/drools-applications.git]
/
controlloop
/
templates
/
template.demo
/
src
/
test
/
resources
/
yaml
/
policy_guard_appc_restart.yaml
1
guard:
2
version: 2.0.0
3
4
guards:
5
- id: unique_guard_5
6
name: APPC 5 Restart
7
description: |
8
We only allow 2 restarts over 10 minute window during the day time hours (avoid midnight to 5am)
9
match_parameters:
10
controlLoopName: ControlLoop-Service123-cbed919f-2212-4ef7-8051-fe6308da1bda
11
actor: APPC
12
recipe: Restart
13
targets:
14
- s1
15
- s2
16
- foobartriggersource36
17
- s3
18
- testGenericVnfName
19
limit_constraints:
20
- freq_limit_per_target: 1
21
time_window:
22
value: 10
23
units: minute
24
active_time_range:
25
start: 00:00:00-05:00
26
end: 23:59:59-05:00
27