aboutsummaryrefslogtreecommitdiffstats
path: root/dcae-analytics-test
diff options
context:
space:
mode:
authoran4828 <nekrassov@att.com>2017-09-15 15:28:53 -0400
committeran4828 <nekrassov@att.com>2017-09-18 09:24:04 -0400
commit4edf0fa48892bf38d0e3838d125e9bf2324b38e0 (patch)
tree7216dae042828ec2cf38cb9300af1a32a17b3b91 /dcae-analytics-test
parent82aaf956855507e5a72d5ef5b45e398430d04a7a (diff)
Add support for ABATED alerts within CDAP TCA
Change-Id: Iae560a2d0a47b30b41cd31206dc481a08e4930f7 Signed-off-by: an4828 <nekrassov@att.com> Issue-ID: DCAEGEN2-107 Signed-off-by: an4828 <nekrassov@att.com>
Diffstat (limited to 'dcae-analytics-test')
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/cef/cef_message.json76
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/cef/cef_message_with_threshold_violation.json76
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/cef/cef_messages.json33
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/config/controller_app_config.json33
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/config/invalidJsonConfig.json6
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/config/testAppConfig.json6
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/facade/tca_ves_cef_response.json18
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/policy/tca_policy.json68
-rw-r--r--dcae-analytics-test/src/main/resources/data/json/tca/ves_mock_messages.json353
-rw-r--r--dcae-analytics-test/src/main/resources/data/properties/quartz-test.properties24
-rw-r--r--dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy.properties78
-rw-r--r--dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy_from_json.properties37
-rw-r--r--dcae-analytics-test/src/main/resources/data/properties/testApp.properties22
13 files changed, 830 insertions, 0 deletions
diff --git a/dcae-analytics-test/src/main/resources/data/json/cef/cef_message.json b/dcae-analytics-test/src/main/resources/data/json/cef/cef_message.json
new file mode 100644
index 0000000..e3be937
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/cef/cef_message.json
@@ -0,0 +1,76 @@
+{
+ "event": {
+ "commonEventHeader": {
+ "domain": "measurementsForVfScaling",
+ "eventId": "UC1-SCL01081-1492639920787",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "lastEpochMicrosec": 1492639920787,
+ "nfNamingCode": "ENBE",
+ "priority": "Normal",
+ "reportingEntityId": "",
+ "reportingEntityName": "vtc2e7admn2",
+ "sequence": 0,
+ "sourceId": "SCL01081_9B_1",
+ "sourceName": "SCL01081",
+ "startEpochMicrosec": 1492639920787,
+ "version": 3.0
+ },
+ "measurementsForVfScalingFields": {
+ "additionalFields": [
+ {
+ "name": "software_version ",
+ "value": "version1"
+ },
+ {
+ "name": "vendor ",
+ "value": "Ericsson "
+ }
+ ],
+ "additionalMeasurements": [
+ {
+ "name": "OaaS_UC1_EricssonSleepingCell",
+ "arrayOfFields": [
+ {
+ "name": "PMRAATTCBRA",
+ "value": "1353"
+ },
+ {
+ "name": "PMRASUCCCBRA",
+ "value": "1351"
+ },
+ {
+ "name": "PMCELLDOWNTIMEAUTO",
+ "value": "0"
+ },
+ {
+ "name": "PMCELLDOWNTIMEMAN",
+ "value": "0"
+ },
+ {
+ "name": "PMRRCCONNESTABATT",
+ "value": "297"
+ },
+ {
+ "name": "PMRRCCONNESTABSUCC",
+ "value": "297"
+ }
+ ]
+ }
+ ],
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated" : 5000,
+ "receivedBroadcastPacketsDelta" : 5,
+ "receivedDiscardedPacketsAccumulated" : 12,
+ "receivedDiscardedPacketsDelta" : 2,
+ "receivedErrorPacketsAccumulated" : 2,
+ "receivedErrorPacketsDelta" : 1,
+ "valuesAreSuspect" : false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 900,
+ "measurementsForVfScalingVersion": 2.0
+ }
+ }
+}
diff --git a/dcae-analytics-test/src/main/resources/data/json/cef/cef_message_with_threshold_violation.json b/dcae-analytics-test/src/main/resources/data/json/cef/cef_message_with_threshold_violation.json
new file mode 100644
index 0000000..9dba3cd
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/cef/cef_message_with_threshold_violation.json
@@ -0,0 +1,76 @@
+{
+ "event": {
+ "commonEventHeader": {
+ "domain": "measurementsForVfScaling",
+ "eventId": "UC1-SCL01081-1492639920787",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "lastEpochMicrosec": 1492639920787,
+ "nfNamingCode": "ENBE",
+ "priority": "Normal",
+ "reportingEntityId": "",
+ "reportingEntityName": "vtc2e7admn2",
+ "sequence": 0,
+ "sourceId": "SCL01081_9B_1",
+ "sourceName": "SCL01081",
+ "startEpochMicrosec": 1492639920787,
+ "version": 3.0
+ },
+ "measurementsForVfScalingFields": {
+ "additionalFields": [
+ {
+ "name": "software_version ",
+ "value": "version1"
+ },
+ {
+ "name": "vendor ",
+ "value": "Ericsson "
+ }
+ ],
+ "additionalMeasurements": [
+ {
+ "name": "OaaS_UC1_EricssonSleepingCell",
+ "arrayOfFields": [
+ {
+ "name": "PMRAATTCBRA",
+ "value": "1353"
+ },
+ {
+ "name": "PMRASUCCCBRA",
+ "value": "1351"
+ },
+ {
+ "name": "PMCELLDOWNTIMEAUTO",
+ "value": "0"
+ },
+ {
+ "name": "PMCELLDOWNTIMEMAN",
+ "value": "0"
+ },
+ {
+ "name": "PMRRCCONNESTABATT",
+ "value": "297"
+ },
+ {
+ "name": "PMRRCCONNESTABSUCC",
+ "value": "297"
+ }
+ ]
+ }
+ ],
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated" : 21000,
+ "receivedBroadcastPacketsDelta" : 5,
+ "receivedDiscardedPacketsAccumulated" : 12,
+ "receivedDiscardedPacketsDelta" : 2,
+ "receivedErrorPacketsAccumulated" : 2,
+ "receivedErrorPacketsDelta" : 1,
+ "valuesAreSuspect" : false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 900,
+ "measurementsForVfScalingVersion": 2.0
+ }
+ }
+}
diff --git a/dcae-analytics-test/src/main/resources/data/json/cef/cef_messages.json b/dcae-analytics-test/src/main/resources/data/json/cef/cef_messages.json
new file mode 100644
index 0000000..26dfd63
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/cef/cef_messages.json
@@ -0,0 +1,33 @@
+[
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"Name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/301:fclustr-301:FGroup-308:femto-34179","reportingEntityName":"1085190","startEpochMicrosec":1493393250722,"eventId":"UC2-BRHMALM02001-1493393250722","lastEpochMicrosec":1493393250722,"priority":"Normal","sequence":0,"sourceName":"BRHMALM02001","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4860","reportingEntityName":"75160","startEpochMicrosec":1493393250717,"eventId":"UC2-PTLDORM58217-1493393250717","lastEpochMicrosec":1493393250717,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58217","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-7558","reportingEntityName":"96140","startEpochMicrosec":1493393250712,"eventId":"UC2-PTLDORM58210-1493393250712","lastEpochMicrosec":1493393250712,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58210","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/203:fclustr-203:FGroup-310:femto-37457","reportingEntityName":"1373204","startEpochMicrosec":1493393250718,"eventId":"UC2-BSTNVTM06013-1493393250718","lastEpochMicrosec":1493393250718,"priority":"Normal","sequence":0,"sourceName":"BSTNVTM06013","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/203:fclustr-203:FGroup-223:femto-39355","reportingEntityName":"1060176","startEpochMicrosec":1493393250721,"eventId":"UC2-BSTNVTM06103-1493393250721","lastEpochMicrosec":1493393250721,"priority":"Normal","sequence":0,"sourceName":"BSTNVTM06103","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/158:fclustr-158:FGroup-28:femto-30166","reportingEntityName":"954175","startEpochMicrosec":1493393250720,"eventId":"UC2-PITBPAM38246-1493393250720","lastEpochMicrosec":1493393250720,"priority":"Normal","sequence":0,"sourceName":"PITBPAM38246","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/203:fclustr-203:FGroup-223:femto-33673","reportingEntityName":"1060173","startEpochMicrosec":1493393250723,"eventId":"UC2-BSTNVTM06066-1493393250723","lastEpochMicrosec":1493393250723,"priority":"Normal","sequence":0,"sourceName":"BSTNVTM06066","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/3:fclustr-3:FGroup-47:femto-34309","reportingEntityName":"1185198","startEpochMicrosec":1493393250724,"eventId":"UC2-SCRMCNM29032-1493393250724","lastEpochMicrosec":1493393250724,"priority":"Normal","sequence":0,"sourceName":"SCRMCNM29032","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4855","reportingEntityName":"75138","startEpochMicrosec":1493393250714,"eventId":"UC2-PTLDORM58212-1493393250714","lastEpochMicrosec":1493393250714,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58212","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-10466","reportingEntityName":"133734","startEpochMicrosec":1493393250715,"eventId":"UC2-PTLDORM58925-1493393250715","lastEpochMicrosec":1493393250715,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58925","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/201:fclustr-201:FGroup-218:femto-29721","reportingEntityName":"844171","startEpochMicrosec":1493393250719,"eventId":"UC2-NYCMNYM23031-1493393250719","lastEpochMicrosec":1493393250719,"priority":"Normal","sequence":0,"sourceName":"NYCMNYM23031","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4858","reportingEntityName":"75137","startEpochMicrosec":1493393250715,"eventId":"UC2-PTLDORM58215-1493393250715","lastEpochMicrosec":1493393250715,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58215","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4852","reportingEntityName":"75173","startEpochMicrosec":1493393250726,"eventId":"UC2-PTLDORM58014-1493393250726","lastEpochMicrosec":1493393250726,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58014","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/3:fclustr-3:FGroup-282:femto-36109","reportingEntityName":"1085174","startEpochMicrosec":1493393250725,"eventId":"UC2-SLKCUTM08059-1493393250725","lastEpochMicrosec":1493393250725,"priority":"Normal","sequence":0,"sourceName":"SLKCUTM08059","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/3:fclustr-3:FGroup-366:femto-37721","reportingEntityName":"1385173","startEpochMicrosec":1493393250720,"eventId":"UC2-SLKCUTM08083-1493393250720","lastEpochMicrosec":1493393250720,"priority":"Normal","sequence":0,"sourceName":"SLKCUTM08083","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/158:fclustr-158:FGroup-105:femto-33105","reportingEntityName":"1064173","startEpochMicrosec":1493393250722,"eventId":"UC2-STLSMOM29030-1493393250722","lastEpochMicrosec":1493393250722,"priority":"Normal","sequence":0,"sourceName":"STLSMOM29030","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/152:fclustr-152:FGroup-45:femto-8549","reportingEntityName":"165395","startEpochMicrosec":1493393250727,"eventId":"UC2-MILWWIM04202-1493393250727","lastEpochMicrosec":1493393250727,"priority":"Normal","sequence":0,"sourceName":"MILWWIM04202","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/3:fclustr-3:FGroup-42:femto-30554","reportingEntityName":"1304171","startEpochMicrosec":1493393250723,"eventId":"UC2-DNVRCOM04034-1493393250723","lastEpochMicrosec":1493393250723,"priority":"Normal","sequence":0,"sourceName":"DNVRCOM04034","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4856","reportingEntityName":"75139","startEpochMicrosec":1493393250714,"eventId":"UC2-PTLDORM58213-1493393250714","lastEpochMicrosec":1493393250714,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58213","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4862","reportingEntityName":"75158","startEpochMicrosec":1493393250718,"eventId":"UC2-PTLDORM58219-1493393250718","lastEpochMicrosec":1493393250718,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58219","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-9407","reportingEntityName":"114953","startEpochMicrosec":1493393250713,"eventId":"UC2-PTLDORM58211-1493393250713","lastEpochMicrosec":1493393250713,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58211","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/252:fclustr-252:FGroup-141:femto-36114","reportingEntityName":"1253171","startEpochMicrosec":1493393250721,"eventId":"UC2-BLTMMDM00025-1493393250721","lastEpochMicrosec":1493393250721,"priority":"Normal","sequence":0,"sourceName":"BLTMMDM00025","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4861","reportingEntityName":"75159","startEpochMicrosec":1493393250718,"eventId":"UC2-PTLDORM58218-1493393250718","lastEpochMicrosec":1493393250718,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58218","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/203:fclustr-203:FGroup-309:femto-37456","reportingEntityName":"1373227","startEpochMicrosec":1493393250717,"eventId":"UC2-BSTNVTM06011-1493393250717","lastEpochMicrosec":1493393250717,"priority":"Normal","sequence":0,"sourceName":"BSTNVTM06011","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4859","reportingEntityName":"75166","startEpochMicrosec":1493393250716,"eventId":"UC2-PTLDORM58216-1493393250716","lastEpochMicrosec":1493393250716,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58216","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/251:fclustr-251:FGroup-50:femto-11763","reportingEntityName":"165383","startEpochMicrosec":1493393250724,"eventId":"UC2-BLTMMDM00367-1493393250724","lastEpochMicrosec":1493393250724,"priority":"Normal","sequence":0,"sourceName":"BLTMMDM00367","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-4857","reportingEntityName":"75142","startEpochMicrosec":1493393250714,"eventId":"UC2-PTLDORM58214-1493393250714","lastEpochMicrosec":1493393250714,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58214","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-70:femto-10465","reportingEntityName":"133740","startEpochMicrosec":1493393250716,"eventId":"UC2-PTLDORM58924-1493393250716","lastEpochMicrosec":1493393250716,"priority":"Normal","sequence":0,"sourceName":"PTLDORM58924","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/53:fclustr-53:FGroup-165:femto-32607","reportingEntityName":"977200","startEpochMicrosec":1493393250726,"eventId":"UC2-LSANCLM30038-1493393250726","lastEpochMicrosec":1493393250726,"priority":"Normal","sequence":0,"sourceName":"LSANCLM30038","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/53:fclustr-53:FGroup-165:femto-32555","reportingEntityName":"977174","startEpochMicrosec":1493393250725,"eventId":"UC2-LSANCLM30037-1493393250725","lastEpochMicrosec":1493393250725,"priority":"Normal","sequence":0,"sourceName":"LSANCLM30037","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}},
+ {"event":{"measurementsForVfScalingFields":{"measurementInterval":600,"additionalMeasurements":[{"arrayOfFields":[{"name":"BS_Reset_Needed","value":"1"}],"name":"OaaS_UC2_ALUMetrocellBackhaul"}],"measurementsForVfScalingVersion":2.0,"additionalFields":[{"name":"software_version","value":""},{"name":"vendor","value":"ALU"},{"name":"datetime","value":""}]},"commonEventHeader":{"nfNamingCode":"MEAP","version":3.0,"sourceId":"network:FemtoCluster\/1:fclustr-1:FGroup-14:femto-5578","reportingEntityName":"70120","startEpochMicrosec":1493393250720,"eventId":"UC2-DNVRCOM04230-1493393250720","lastEpochMicrosec":1493393250720,"priority":"Normal","sequence":0,"sourceName":"DNVRCOM04230","domain":"measurementsForVfScaling","eventName":"Mfvs_eNodeB_RANKPI","reportingEntityId":""}}}
+]
diff --git a/dcae-analytics-test/src/main/resources/data/json/config/controller_app_config.json b/dcae-analytics-test/src/main/resources/data/json/config/controller_app_config.json
new file mode 100644
index 0000000..0a82d6b
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/config/controller_app_config.json
@@ -0,0 +1,33 @@
+{
+ "appName":"dcae-tca",
+ "appDescription": "DCAE Analytics Threshold Crossing Alert Application",
+ "tcaVESMessageStatusTableName": "TCAVESMessageStatusTable",
+ "tcaVESMessageStatusTableTTLSeconds": 86400.0,
+ "tcaAlertsAbatementTableName": "TCAAlertsAbatementTable",
+ "tcaAlertsAbatementTableTTLSeconds": 1728000.0,
+ "tcaVESAlertsTableName": "TCAVESAlertsTable",
+ "tcaVESAlertsTableTTLSeconds": 1728000.0,
+ "thresholdCalculatorFlowletInstances": 2.0,
+ "tcaSubscriberOutputStreamName": "TCASubscriberOutputStream",
+ "services_calls": {},
+ "streams_publishes":{
+ "tca_handle_out":{
+ "type": "message_router",
+ "aaf_username": "USER",
+ "aaf_password":"PASSWORD",
+ "dmaap_info": {
+ "topic_url": "https://HOSTNAME:3905/events/com.att.dcae.dmaap.mtnje2.DcaeTestVESPub"
+ }
+ }
+ },
+ "streams_subscribes":{
+ "tca_handle_in":{
+ "type": "message_router",
+ "aaf_username": "USER",
+ "aaf_password":"PASSWORD",
+ "dmaap_info":{
+ "topic_url":"https://HOSTNAME:3905/events/com.att.dcae.dmaap.mtnje2.DcaeTestVESSub"
+ }
+ }
+ }
+}
diff --git a/dcae-analytics-test/src/main/resources/data/json/config/invalidJsonConfig.json b/dcae-analytics-test/src/main/resources/data/json/config/invalidJsonConfig.json
new file mode 100644
index 0000000..b706da0
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/config/invalidJsonConfig.json
@@ -0,0 +1,6 @@
+{
+ "config": {
+ "appName": "TestAppName",
+ "appDescription": "Test App Description",
+ }
+}
diff --git a/dcae-analytics-test/src/main/resources/data/json/config/testAppConfig.json b/dcae-analytics-test/src/main/resources/data/json/config/testAppConfig.json
new file mode 100644
index 0000000..cdad420
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/config/testAppConfig.json
@@ -0,0 +1,6 @@
+{
+ "config": {
+ "appName": "TestAppName",
+ "appDescription": "Test App Description"
+ }
+}
diff --git a/dcae-analytics-test/src/main/resources/data/json/facade/tca_ves_cef_response.json b/dcae-analytics-test/src/main/resources/data/json/facade/tca_ves_cef_response.json
new file mode 100644
index 0000000..98135ec
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/facade/tca_ves_cef_response.json
@@ -0,0 +1,18 @@
+{
+ "closedLoopControlName": "CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",
+ "version": "1.0.2",
+ "requestID": "0138afac-b032-4e4b-bd30-88260f444888",
+ "closedLoopAlarmStart": 1478189220547,
+ "closedLoopEventClient": "tca.instance00001",
+ "target_type": "VNF",
+ "target": "generic-vnf.vnf-id",
+ "AAI": {
+ "generic-vnf.vnf-id" : "vpp-test(?)",
+ "vserver.vserver-name": "dfw1lb01lb01"
+ },
+ "from": "DCAE",
+ "policyScope": "resource=vFirewall;type=configuration",
+ "policyName": "configuration.dcae.microservice.tca.xml",
+ "policyVersion": "v0.0.1",
+ "closedLoopEventStatus": "ONSET"
+}
diff --git a/dcae-analytics-test/src/main/resources/data/json/policy/tca_policy.json b/dcae-analytics-test/src/main/resources/data/json/policy/tca_policy.json
new file mode 100644
index 0000000..c5ab94c
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/policy/tca_policy.json
@@ -0,0 +1,68 @@
+{
+ "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"
+ }
+ ]
+ }
+ ]
+}
diff --git a/dcae-analytics-test/src/main/resources/data/json/tca/ves_mock_messages.json b/dcae-analytics-test/src/main/resources/data/json/tca/ves_mock_messages.json
new file mode 100644
index 0000000..9d3b408
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/json/tca/ves_mock_messages.json
@@ -0,0 +1,353 @@
+[
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 5000,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 4000,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 3999,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 19999,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 20000,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 20001,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 0,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 0,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 20001,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ },
+ {
+ "event": {
+ "measurementsForVfScalingFields": {
+ "vNicPerformanceArray": [
+ {
+ "receivedBroadcastPacketsAccumulated": 0,
+ "receivedBroadcastPacketsDelta": 5,
+ "receivedDiscardedPacketsAccumulated": 12,
+ "receivedDiscardedPacketsDelta": 2,
+ "receivedErrorPacketsAccumulated": 2,
+ "receivedErrorPacketsDelta": 1,
+ "valuesAreSuspect": false,
+ "vNicIdentifier": "someVNicIdentifier"
+ }
+ ],
+ "measurementInterval": 600,
+ "measurementsForVfScalingVersion": 2.0
+ },
+ "commonEventHeader": {
+ "nfNamingCode": "MEAP",
+ "version": 3.0,
+ "sourceId": "network1",
+ "reportingEntityName": "1085190",
+ "startEpochMicrosec": 1493393250722,
+ "eventId": "UC22",
+ "lastEpochMicrosec": 1493393250722,
+ "priority": "Normal",
+ "sequence": 0,
+ "sourceName": "BRHMALM02001",
+ "domain": "measurementsForVfScaling",
+ "eventName": "Mfvs_eNodeB_RANKPI",
+ "reportingEntityId": ""
+ }
+ }
+ }
+]
diff --git a/dcae-analytics-test/src/main/resources/data/properties/quartz-test.properties b/dcae-analytics-test/src/main/resources/data/properties/quartz-test.properties
new file mode 100644
index 0000000..d4ad8f3
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/properties/quartz-test.properties
@@ -0,0 +1,24 @@
+#
+# ===============================LICENSE_START======================================
+# dcae-analytics
+# ================================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============================LICENSE_END===========================================
+#
+
+org.quartz.scheduler.instanceName=TCA_DMaaPMRPublisher_Scheduler
+org.quartz.threadPool.threadCount=3
+org.quartz.jobStore.class=org.quartz.simpl.RAMJobStore
+org.quartz.scheduler.skipUpdateCheck=true
diff --git a/dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy.properties b/dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy.properties
new file mode 100644
index 0000000..7f9ff20
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy.properties
@@ -0,0 +1,78 @@
+#
+# ===============================LICENSE_START======================================
+# dcae-analytics
+# ================================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============================LICENSE_END===========================================
+#
+
+
+subscriberContentType=application/json
+subscriberConsumerId=c12
+subscriberConsumerGroup=OpenDCAE-c12
+subscriberTimeoutMS=-1
+subscriberMessageLimit=-1
+subscriberPollingInterval=20000
+publisherContentType=application/json
+publisherMaxBatchSize=10
+publisherMaxRecoveryQueueSize=100000
+publisherPollingInterval=20000
+enableAlertCEFFormat=false
+
+domain=measurementsForVfScaling
+
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.policy.eventName=Mfvs_eNodeB_RANKPI
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.policyName=configuration.dcae.microservice.tca.xml
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.policyVersion=v0.0.1
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.policyScope=resource=Mfvs_eNodeB_RANKPI;type=configuration
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.closedLoopControlName=VNF
+
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.0.policy.closedLoopControlName=CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.0.policy.fieldPath=$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.0.policy.thresholdValue=4000
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.0.policy.direction=LESS_OR_EQUAL
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.0.policy.severity=MAJOR
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.0.policy.version=1.0.2
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.0.policy.closedLoopEventStatus=ONSET
+
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.1.policy.closedLoopControlName=L-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.1.policy.fieldPath=$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.1.policy.thresholdValue=20000
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.1.policy.direction=GREATER_OR_EQUAL
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.1.policy.severity=CRITICAL
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.1.policy.version=1.0.2
+configuration.metricsPerEventName.Mfvs_eNodeB_RANKPI.thresholds.1.policy.closedLoopEventStatus=ONSET
+
+configuration.metricsPerEventName.vLoadBalancer.policy.eventName=vLoadBalancer
+configuration.metricsPerEventName.vLoadBalancer.policyName=configuration.dcae.microservice.tca.xml
+configuration.metricsPerEventName.vLoadBalancer.policyVersion=v0.0.1
+configuration.metricsPerEventName.vLoadBalancer.policyScope=resource=vLoadBalancer;type=configuration
+configuration.metricsPerEventName.vLoadBalancer.closedLoopControlName=VNF
+
+configuration.metricsPerEventName.vLoadBalancer.thresholds.0.policy.closedLoopControlName=CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A
+configuration.metricsPerEventName.vLoadBalancer.thresholds.0.policy.fieldPath=$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated
+configuration.metricsPerEventName.vLoadBalancer.thresholds.0.policy.thresholdValue=500
+configuration.metricsPerEventName.vLoadBalancer.thresholds.0.policy.direction=LESS_OR_EQUAL
+configuration.metricsPerEventName.vLoadBalancer.thresholds.0.policy.severity=MAJOR
+configuration.metricsPerEventName.vLoadBalancer.thresholds.0.policy.version=1.0.2
+configuration.metricsPerEventName.vLoadBalancer.thresholds.0.policy.closedLoopEventStatus=ONSET
+
+configuration.metricsPerEventName.vLoadBalancer.thresholds.1.policy.closedLoopControlName=CL-LBAL-LOW-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B
+configuration.metricsPerEventName.vLoadBalancer.thresholds.1.policy.fieldPath=$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated
+configuration.metricsPerEventName.vLoadBalancer.thresholds.1.policy.thresholdValue=5000
+configuration.metricsPerEventName.vLoadBalancer.thresholds.1.policy.direction=GREATER_OR_EQUAL
+configuration.metricsPerEventName.vLoadBalancer.thresholds.1.policy.severity=CRITICAL
+configuration.metricsPerEventName.vLoadBalancer.thresholds.1.policy.version=1.0.2
+configuration.metricsPerEventName.vLoadBalancer.thresholds.1.policy.closedLoopEventStatus=ONSET
diff --git a/dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy_from_json.properties b/dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy_from_json.properties
new file mode 100644
index 0000000..1a8034b
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy_from_json.properties
@@ -0,0 +1,37 @@
+# ============LICENSE_START=========================================================
+# dcae-analytics
+# ================================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+#
+
+subscriberContentType=application/json
+subscriberConsumerId=c12
+subscriberConsumerGroup=OpenDCAE-c12
+subscriberTimeoutMS=-1
+subscriberMessageLimit=-1
+subscriberPollingInterval=20000
+
+publisherContentType=application/json
+publisherMaxBatchSize=10
+publisherMaxRecoveryQueueSize=100000
+publisherPollingInterval=20000
+enableAlertCEFFormat=false
+
+tca_policy={\"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\"}]},{\"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\"}]}]}
+
+
+
+
diff --git a/dcae-analytics-test/src/main/resources/data/properties/testApp.properties b/dcae-analytics-test/src/main/resources/data/properties/testApp.properties
new file mode 100644
index 0000000..0161060
--- /dev/null
+++ b/dcae-analytics-test/src/main/resources/data/properties/testApp.properties
@@ -0,0 +1,22 @@
+#
+# ===============================LICENSE_START======================================
+# dcae-analytics
+# ================================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============================LICENSE_END===========================================
+#
+
+testProp1="testPropValue1"
+testProp2="testPropValue2"