blob: 503616593dd7e731e94c9a57cb94545b3f4578a6 [file] [log] [blame]
sebdetdfa86ca2019-04-05 15:15:31 +02001{
2 "guard_policies": {
3 "guard1":{
4 "recipe": "Rebuild",
5 "actor": "SO",
6 "clname": "testloop",
7 "guardTargets": ".*",
8 "minGuard": "3",
9 "maxGuard": "7",
10 "limitGuard": "",
11 "timeUnitsGuard": "",
12 "timeWindowGuard": "",
13 "guardActiveStart": "00:00:01-05:00",
14 "guardActiveEnd": "23:59:01-05:00"
15 },
16 "guard2":{
17 "recipe": "Migrate",
18 "actor": "SO",
19 "clname": "testloop",
20 "guardTargets": ".*",
21 "minGuard": "1",
22 "maxGuard": "2",
23 "limitGuard": "",
24 "timeUnitsGuard": "",
25 "timeWindowGuard": "",
26 "guardActiveStart": "00:00:01-05:00",
27 "guardActiveEnd": "23:59:01-05:00"
28 }
29 },
30 "operational_policy": {
31 "controlLoop": {
32 "controlLoopName": "control loop",
33 "version": "2.0.0",
34 "trigger_policy": "new1",
35 "timeout": "30",
36 "abatement": "true"
37 },
38 "policies": [
39 {
40 "id": "new1",
41 "recipe": "Rebuild",
42 "retry": "10",
43 "timeout": "20",
44 "actor": "SO",
45 "payload": "test",
46 "success": "new2",
47 "failure": "new2",
48 "failure_timeout": "new2",
49 "failure_retries": "new2",
50 "failure_exception": "new2",
51 "failure_guard": "new2",
52 "target": {
53 "type": "VFC",
54 "resourceTargetId": "test"
55 }
56 },
57 {
58 "id": "new2",
59 "recipe": "Migrate",
60 "retry": "30",
61 "timeout": "40",
62 "actor": "SDNC",
63 "payload": "test",
64 "target": {
65 "type": "VFC",
66 "resourceTargetId": "test"
67 }
68 }
69 ]
70 }
71}