summaryrefslogtreecommitdiffstats
path: root/src/test/resources/tosca/operational-policy-properties.json
blob: bfce6b3310c44f3f3ac01a960b66226bccd40b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
	"guard_policies": {
		"guard1":{
			"recipe": "Rebuild",
			"actor": "SO",
			"clname": "testloop",
			"targets": ".*",
			"min": "3",
			"max": "7",
			"limit": "",
			"timeUnits": "",
			"timeWindow": "",
			"guardActiveStart": "00:00:01-05:00",
			"guardActiveEnd": "23:59:01-05:00"
		},
		"guard2":{
			"recipe": "Migrate",
			"actor": "SO",
			"clname": "testloop",
			"targets": ".*",
			"min": "1",
			"max": "2",
			"limit": "",
			"timeUnits": "",
			"timeWindow": "",
			"guardActiveStart": "00:00:01-05:00",
			"guardActiveEnd": "23:59:01-05:00"
		}
	},
	"operational_policy": {
		"controlLoop": {
			"controlLoopName": "control loop",
			"version": "2.0.0",
			"trigger_policy": "new1",
			"timeout": "30",
			"abatement": "true"
		},
		"policies": [
			{
				"id": "new1",
				"recipe": "Rebuild",
				"retry": "10",
				"timeout": "20",
				"actor": "SO",
				"payload": "requestParameters: '{\"usePreload\":true,\"userParams\":[]}'\r\nconfigurationParameters: '[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[10].value\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[15].value\",\"enabled\":\"$.vf-module-topology.vf-module-parameters.param[22].value\"}]'",
				"success": "new2",
				"failure": "new2",
				"failure_timeout": "new2",
				"failure_retries": "new2",
				"failure_exception": "new2",
				"failure_guard": "new2",
				"target": {
					"type": "VFC",
					"resourceTargetId": "test"
				}
			},
			{
				"id": "new2",
				"recipe": "Migrate",
				"retry": "30",
				"timeout": "40",
				"actor": "SDNC",
				"payload": "",
				"target": {
					"type": "VFC",
					"resourceTargetId": "test"
				}
			}
		]
	}
}