summaryrefslogtreecommitdiffstats
path: root/src/test/resources/tosca/micro-service-policy-payload.json
blob: 01d6d275ca2ab1617b41dd601bad5e905d926bdf (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
{
	"tosca_definitions_version": "tosca_simple_yaml_1_0_0",
	"topology_template": {
		"policies": [
			{
				"testPolicy": {
					"type": "onap.policy.monitoring.cdap.tca.hi.lo.app",
					"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"
								}
							]
						}
					}
				}
			}
		]
	}
}