TCA: Support for VES/A&AI enrichment
[dcaegen2/analytics/tca.git] / dcae-analytics-test / src / main / resources / data / json / policy / tca_policy.json
index c5ab94c..f1b9ebd 100644 (file)
@@ -1,68 +1,86 @@
-{
-  "domain": "measurementsForVfScaling",
-  "metricsPerEventName": [
-    {
-      "eventName": "Mfvs_eNodeB_RANKPI",
-      "controlLoopSchemaType" : "VNF",
-      "policyScope": "resource=vFirewall;type=configuration",
-      "policyName": "configuration.dcae.microservice.tca.xml",
-      "policyVersion": "v0.0.1",
-      "thresholds": [
-        {
-          "closedLoopControlName": "CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",
-          "closedLoopEventStatus" : "ONSET",
-          "version": "1.0.2",
-          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
-          "thresholdValue": 4000,
-          "direction": "LESS_OR_EQUAL",
-          "severity": "MAJOR"
-        },
-        {
-          "closedLoopControlName": "CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09",
-          "closedLoopEventStatus" : "ONSET",
-          "version": "1.0.2",
-          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
-          "thresholdValue": 20000,
-          "direction": "GREATER_OR_EQUAL",
-          "severity": "CRITICAL"
-        },
-        {
-          "closedLoopControlName": "CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09",
-          "closedLoopEventStatus" : "ABATED",
-          "version": "1.0.2",
-          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
-          "thresholdValue": 0,
-          "direction": "EQUAL",
-          "severity": "CRITICAL"
-        }
-      ]
-    },
-    {
-      "eventName": "vLoadBalancer",
-      "controlLoopSchemaType" : "VNF",
-      "policyScope": "resource=vLoadBalancer;type=configuration",
-      "policyName": "configuration.dcae.microservice.tca.xml",
-      "policyVersion": "v0.0.1",
-      "thresholds": [
-        {
-          "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",
-          "closedLoopEventStatus" : "ONSET",
-          "version": "1.0.2",
-          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
-          "thresholdValue": 500,
-          "direction": "LESS_OR_EQUAL",
-          "severity": "MAJOR"
-        },
-        {
-          "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B",
-          "closedLoopEventStatus" : "ONSET",
-          "version": "1.0.2",
-          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
-          "thresholdValue": 5000,
-          "direction": "GREATER_OR_EQUAL",
-          "severity": "CRITICAL"
-        }
-      ]
-    }
-  ]
-}
+{\r
+  "domain": "measurementsForVfScaling",\r
+  "metricsPerEventName": [\r
+    {\r
+      "eventName": "Mfvs_eNodeB_RANKPI",\r
+      "controlLoopSchemaType" : "VNF",\r
+      "policyScope": "resource=vFirewall;type=configuration",\r
+      "policyName": "configuration.dcae.microservice.tca.xml",\r
+      "policyVersion": "v0.0.1",\r
+      "thresholds": [\r
+        {\r
+          "closedLoopControlName": "CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",\r
+          "closedLoopEventStatus" : "ONSET",\r
+          "version": "1.0.2",\r
+          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",\r
+          "thresholdValue": 4000,\r
+          "direction": "LESS_OR_EQUAL",\r
+          "severity": "MAJOR"\r
+        },\r
+        {\r
+          "closedLoopControlName": "CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09",\r
+          "closedLoopEventStatus" : "ONSET",\r
+          "version": "1.0.2",\r
+          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",\r
+          "thresholdValue": 20000,\r
+          "direction": "GREATER_OR_EQUAL",\r
+          "severity": "CRITICAL"\r
+        },\r
+        {\r
+          "closedLoopControlName": "CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09",\r
+          "closedLoopEventStatus" : "ABATED",\r
+          "version": "1.0.2",\r
+          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",\r
+          "thresholdValue": 0,\r
+          "direction": "EQUAL",\r
+          "severity": "CRITICAL"\r
+        }\r
+      ]\r
+    },\r
+    {\r
+      "eventName": "vLoadBalancer",\r
+      "controlLoopSchemaType" : "VNF",\r
+      "policyScope": "resource=vLoadBalancer;type=configuration",\r
+      "policyName": "configuration.dcae.microservice.tca.xml",\r
+      "policyVersion": "v0.0.1",\r
+      "thresholds": [\r
+        {\r
+          "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",\r
+          "closedLoopEventStatus" : "ONSET",\r
+          "version": "1.0.2",\r
+          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",\r
+          "thresholdValue": 500,\r
+          "direction": "LESS_OR_EQUAL",\r
+          "severity": "MAJOR"\r
+        },\r
+        {\r
+          "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B",\r
+          "closedLoopEventStatus" : "ONSET",\r
+          "version": "1.0.2",\r
+          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",\r
+          "thresholdValue": 5000,\r
+          "direction": "GREATER_OR_EQUAL",\r
+          "severity": "CRITICAL"\r
+        }\r
+      ]\r
+    },\r
+    {\r
+      "eventName": "virtualVMEventName",\r
+      "controlLoopSchemaType" : "VM",\r
+      "policyScope": "resource=virtualVM;type=configuration",\r
+      "policyName": "configuration.dcae.microservice.tca.xml",\r
+      "policyVersion": "v0.0.1",\r
+      "thresholds": [\r
+        {\r
+          "closedLoopControlName": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A",\r
+          "closedLoopEventStatus" : "ONSET",\r
+          "version": "1.0.2",\r
+          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",\r
+          "thresholdValue": 500,\r
+          "direction": "LESS_OR_EQUAL",\r
+          "severity": "MAJOR"\r
+        }\r
+      ]\r
+    }\r
+  ]\r
+}\r