Fix Guard policy payload
[clamp.git] / src / test / resources / tosca / operational-policy-properties.json
1 {
2         "guard_policies": {
3                 "guard1":{
4                         "recipe": "Rebuild",
5                         "actor": "SO",
6                         "clname": "testloop",
7                         "targets": ".*",
8                         "min": "3",
9                         "max": "7",
10                         "limit": "",
11                         "timeUnits": "",
12                         "timeWindow": "",
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                         "targets": ".*",
21                         "min": "1",
22                         "max": "2",
23                         "limit": "",
24                         "timeUnits": "",
25                         "timeWindow": "",
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 }