Code Review
/
policy
/
drools-applications.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a801cde0f7406921eb40c455a5d9cb62f2515d7a
[policy/drools-applications.git]
/
controlloop
/
templates
/
template.demo
/
src
/
test
/
resources
/
yaml
/
policy_guard_appc_rebuild.yaml
1
guard:
2
version: 2.0.0
3
4
guards:
5
- id: unique_guard_3
6
name: APPC 5 Rebuild
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: Rebuild
13
limit_constraints:
14
- freq_limit_per_target: 2
15
time_window:
16
value: 10
17
units: minute
18
active_time_range:
19
start: 00:00:00-05:00
20
end: 23:59:59-05:00
21
22
23
24
25
26