2de06b083a29ab1f934dd60e1f9cafe8f1c1ac76
[clamp.git] / src / test / resources / tosca / micro-service-policy-payload.json
1 {
2         "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
3         "topology_template": {
4                 "policies": [
5                         {
6                                 "testPolicy": {
7                                         "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
8                                         "version": "1.0.0",
9                                         "metadata": {
10                                                 "policy-id": "testPolicy"
11                                         },
12                                         "properties": {
13                                                 "tca_policy": {
14                                                         "domain": "measurementsForVfScaling",
15                                                         "metricsPerEventName": [
16                                                                 {
17                                                                         "policyVersion": "1.0.0",
18                                                                         "thresholds": [
19                                                                                 {
20                                                                                         "severity": "CRITICAL",
21                                                                                         "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
22                                                                                         "thresholdValue": 1,
23                                                                                         "closedLoopEventStatus": "ONSET",
24                                                                                         "closedLoopControlName": "test",
25                                                                                         "version": "1.0.0",
26                                                                                         "direction": "LESS"
27                                                                                 }
28                                                                         ],
29                                                                         "policyName": "test",
30                                                                         "controlLoopSchemaType": "VM",
31                                                                         "policyScope": "test",
32                                                                         "eventName": "test"
33                                                                 }
34                                                         ]
35                                                 }
36                                         }
37                                 }
38                         }
39                 ]
40         }
41 }