summaryrefslogtreecommitdiffstats
path: root/runtime/src/test/resources/tosca/micro-service-policy-payload.json
blob: 2533a54101b28a026f2f4623aaa53f195b7dfa19 (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
{
	"tosca_definitions_version": "tosca_simple_yaml_1_0_0",
	"topology_template": {
		"policies": [
			{
				"testPolicy": {
					"type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
					"type_version": "1.0.0",
					"version": "1.0.0",
					"metadata": {
						"policy-id": "testPolicy"
					},
					"properties": {
						"tca_policy": {
							"domain": "measurementsForVfScaling",
							"metricsPerEventName": [
								{
									"policyVersion": "1.0.0",
									"thresholds": [
										{
											"severity": "CRITICAL",
											"fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
											"thresholdValue": 1,
											"closedLoopEventStatus": "ONSET",
											"closedLoopControlName": "test",
											"version": "1.0.0",
											"direction": "LESS"
										}
									],
									"policyName": "test",
									"controlLoopSchemaType": "VM",
									"policyScope": "test",
									"eventName": "test"
								}
							]
						}
					}
				}
			}
		]
	}
}