Started with test decision JSON objects.
[policy/xacml-pdp.git] / main / src / test / resources / decisions / decision.multiple.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             },
9             "properties": {
10                 "tca_policy": {
11                     "domain": "measurementsForVfScaling",
12                     "metricsPerEventName": [
13                         {
14                             "eventName": "vLoadBalancer",
15                             "controlLoopSchemaType": "VNF",
16                             "policyScope": "type=configuration",
17                             "policyName": "onap.scaleout.tca",
18                             "policyVersion": "v0.0.1",
19                             "thresholds": [
20                                 {
21                                     "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
22                                     "closedLoopEventStatus": "ONSET",
23                                     "version": "1.0.2",
24                                     "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
25                                     "thresholdValue": 500,
26                                     "direction": "LESS_OR_EQUAL",
27                                     "severity": "MAJOR"
28                                 },
29                                 {
30                                     "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
31                                     "closedLoopEventStatus": "ONSET",
32                                     "version": "1.0.2",
33                                     "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
34                                     "thresholdValue": 5000,
35                                     "direction": "GREATER_OR_EQUAL",
36                                     "severity": "CRITICAL"
37                                 }
38                             ]
39                         }
40                     ]
41                 }
42             }
43         },
44         "onap.restart.tca": {
45             "type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
46             "version": "1.0.0",
47             "metadata": {
48                 "policy-id": "onap.restart.tca",
49                 "policy-version": 1
50             },
51             "properties": {
52                 "tca_policy": {
53                     "domain": "measurementsForVfScaling",
54                     "metricsPerEventName": [
55                         {
56                             "eventName": "Measurement_vGMUX",
57                             "controlLoopSchemaType": "VNF",
58                             "policyScope": "DCAE",
59                             "policyName": "DCAE.Config_tca-hi-lo",
60                             "policyVersion": "v0.0.1",
61                             "thresholds": [
62                                 {
63                                     "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
64                                     "version": "1.0.2",
65                                     "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
66                                     "thresholdValue": 0,
67                                     "direction": "EQUAL",
68                                     "severity": "MAJOR",
69                                     "closedLoopEventStatus": "ABATED"
70                                 },
71                                 {
72                                     "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
73                                     "version": "1.0.2",
74                                     "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value",
75                                     "thresholdValue": 0,
76                                     "direction": "GREATER",
77                                     "severity": "CRITICAL",
78                                     "closedLoopEventStatus": "ONSET"
79                                 }
80                             ]
81                         }
82                     ]
83                 }
84             }
85         }
86     }
87 }