Commit includes ControlLoopPolicy API and bugfixes
[policy/engine.git] / ECOMP-ControlloopPolicy / src / test / resources / v2.0.0-guard / policy_guard_1707_appc.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         #
14         # https://www.w3.org/TR/xmlschema-2/#duration
15         #
16         duration: PT15M
17         #
18         # XACML function time-in-range
19         #
20         # Assumption is that the "current time" is the 1st argument
21         #
22         time_in_range:
23           arg2: PT5H
24           arg3: PT24H