Started with test decision JSON objects.
[policy/xacml-pdp.git] / main / src / test / resources / decisions / decsion.single.output.json
1 {
2     "policies": {
3         "onap.scaleout.tca": {
4             "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
5             "version": "1.0.0",
6             "metadata": {
7                 "policy-id": "onap.scaleout.tca",
8                 "policy-version": 1
9             },
10             "properties": {
11                 "tca_policy": {
12                     "domain": "measurementsForVfScaling",
13                     "metricsPerEventName": [
14                         {
15                             "eventName": "vLoadBalancer",
16                             "controlLoopSchemaType": "VNF",
17                             "policyScope": "type=configuration",
18                             "policyName": "onap.scaleout.tca",
19                             "policyVersion": "v0.0.1",
20                             "thresholds": [
21                                 {
22                                     "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
23                                     "closedLoopEventStatus": "ONSET",
24                                     "version": "1.0.2",
25                                     "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
26                                     "thresholdValue": 500,
27                                     "direction": "LESS_OR_EQUAL",
28                                     "severity": "MAJOR"
29                                 },
30                                 {
31                                     "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
32                                     "closedLoopEventStatus": "ONSET",
33                                     "version": "1.0.2",
34                                     "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
35                                     "thresholdValue": 5000,
36                                     "direction": "GREATER_OR_EQUAL",
37                                     "severity": "CRITICAL"
38                                 }
39                             ]
40                         }
41                     ]
42                 }
43             }
44         }
45     }
46 }