Fix loop submit bugs
[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                                         "type_version": "1.0.0",
9                                         "version": "1.0.0",
10                                         "metadata": {
11                                                 "policy-id": "testPolicy"
12                                         },
13                                         "properties": {
14                                                 "tca_policy": {
15                                                         "domain": "measurementsForVfScaling",
16                                                         "metricsPerEventName": [
17                                                                 {
18                                                                         "policyVersion": "1.0.0",
19                                                                         "thresholds": [
20                                                                                 {
21                                                                                         "severity": "CRITICAL",
22                                                                                         "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
23                                                                                         "thresholdValue": 1,
24                                                                                         "closedLoopEventStatus": "ONSET",
25                                                                                         "closedLoopControlName": "test",
26                                                                                         "version": "1.0.0",
27                                                                                         "direction": "LESS"
28                                                                                 }
29                                                                         ],
30                                                                         "policyName": "test",
31                                                                         "controlLoopSchemaType": "VM",
32                                                                         "policyScope": "test",
33                                                                         "eventName": "test"
34                                                                 }
35                                                         ]
36                                                 }
37                                         }
38                                 }
39                         }
40                 ]
41         }
42 }