From 4edf0fa48892bf38d0e3838d125e9bf2324b38e0 Mon Sep 17 00:00:00 2001 From: an4828 Date: Fri, 15 Sep 2017 15:28:53 -0400 Subject: Add support for ABATED alerts within CDAP TCA Change-Id: Iae560a2d0a47b30b41cd31206dc481a08e4930f7 Signed-off-by: an4828 Issue-ID: DCAEGEN2-107 Signed-off-by: an4828 --- .../data/properties/quartz-test.properties | 24 +++++++ .../properties/tca_controller_policy.properties | 78 ++++++++++++++++++++++ .../tca_controller_policy_from_json.properties | 37 ++++++++++ .../resources/data/properties/testApp.properties | 22 ++++++ 4 files changed, 161 insertions(+) create mode 100644 dcae-analytics-test/src/main/resources/data/properties/quartz-test.properties create mode 100644 dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy.properties create mode 100644 dcae-analytics-test/src/main/resources/data/properties/tca_controller_policy_from_json.properties create mode 100644 dcae-analytics-test/src/main/resources/data/properties/testApp.properties (limited to 'dcae-analytics-test/src/main/resources/data/properties') 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" -- cgit 1.2.3-korg