aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/holmes/components/holmes-rule-mgmt/resources/rules/ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b.drl
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2024-08-13 09:59:22 +0200
committerAndreas Geissler <andreas-geissler@telekom.de>2024-08-13 13:22:12 +0200
commit8c66f85d7348b09de54b7479757878d96f1c1cd0 (patch)
treeb4d27de208bbc49ba82a33a2404cc525ca1a2059 /kubernetes/holmes/components/holmes-rule-mgmt/resources/rules/ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b.drl
parent2ce0437988709fd8af46c8f922f1d22d312e49f9 (diff)
[COMMON] Cleanup charts
- archive charts, which are not maintained anymore - archive subcharts in SDNC, MSB, DCAEGEN2-SERVICES - Cleanup environment and override files Issue-ID: OOM-3309 Issue-ID: ONAPARC-805 Change-Id: If19a807fefa574ceb9b90ac1eb84d9642729323d Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/holmes/components/holmes-rule-mgmt/resources/rules/ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b.drl')
-rw-r--r--kubernetes/holmes/components/holmes-rule-mgmt/resources/rules/ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b.drl88
1 files changed, 0 insertions, 88 deletions
diff --git a/kubernetes/holmes/components/holmes-rule-mgmt/resources/rules/ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b.drl b/kubernetes/holmes/components/holmes-rule-mgmt/resources/rules/ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b.drl
deleted file mode 100644
index 814aeedf03..0000000000
--- a/kubernetes/holmes/components/holmes-rule-mgmt/resources/rules/ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b.drl
+++ /dev/null
@@ -1,88 +0,0 @@
-package org.onap.holmes.droolsRule;
-
-import org.onap.holmes.common.dmaap.DmaapService;
-import org.onap.holmes.common.api.stat.VesAlarm;
-import org.onap.holmes.common.aai.CorrelationUtil;
-import org.onap.holmes.common.dmaap.entity.PolicyMsg;
-import org.onap.holmes.common.utils.SpringContextUtil;
-import org.onap.holmes.common.utils.DroolsLog;
-
-rule "Relation_analysis_Rule"
-salience 200
-no-loop true
- when
- $root : VesAlarm(alarmIsCleared == 0,
- $sourceId: sourceId, sourceId != null && !sourceId.equals(""),
- $sourceName: sourceName, sourceName != null && !sourceName.equals(""),
- $startEpochMicrosec: startEpochMicrosec,
- eventName in ("Fault_MultiCloud_VMFailure"),
- $eventId: eventId)
- $child : VesAlarm( eventId != $eventId, parentId == null,
- CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId, $sourceName),
- eventName in ("Fault_MME_eNodeB out of service alarm"),
- startEpochMicrosec < $startEpochMicrosec + 60000 && startEpochMicrosec > $startEpochMicrosec - 60000)
- then
- DroolsLog.printInfo("===========================================================");
- DroolsLog.printInfo("Relation_analysis_Rule: rootId=" + $root.getEventId() + ", childId=" + $child.getEventId());
- $child.setParentId($root.getEventId());
- update($child);
-end
-
-rule "root_has_child_handle_Rule"
-salience 150
-no-loop true
- when
- $root : VesAlarm(alarmIsCleared == 0, rootFlag == 0, $eventId: eventId)
- $child : VesAlarm(eventId != $eventId, parentId == $eventId)
- then
- DroolsLog.printInfo("===========================================================");
- DroolsLog.printInfo("root_has_child_handle_Rule: rootId=" + $root.getEventId() + ", childId=" + $child.getEventId());
- DmaapService dmaapService = SpringContextUtil.getBean(DmaapService.class);
- PolicyMsg policyMsg = dmaapService.getPolicyMsg($root, $child, "org.onap.holmes.droolsRule");
- dmaapService.publishPolicyMsg(policyMsg, "dcae_cl_out");
- $root.setRootFlag(1);
- update($root);
-end
-
-rule "root_no_child_handle_Rule"
-salience 100
-no-loop true
- when
- $root : VesAlarm(alarmIsCleared == 0, rootFlag == 0,
- sourceId != null && !sourceId.equals(""),
- sourceName != null && !sourceName.equals(""),
- eventName in ("Fault_MultiCloud_VMFailure"))
- then
- DroolsLog.printInfo("===========================================================");
- DroolsLog.printInfo("root_no_child_handle_Rule: rootId=" + $root.getEventId());
- DmaapService dmaapService = SpringContextUtil.getBean(DmaapService.class);
- PolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, "org.onap.holmes.droolsRule");
- dmaapService.publishPolicyMsg(policyMsg, "dcae_cl_out");
- $root.setRootFlag(1);
- update($root);
-end
-
-rule "root_cleared_handle_Rule"
-salience 100
-no-loop true
- when
- $root : VesAlarm(alarmIsCleared == 1, rootFlag == 1)
- then
- DroolsLog.printInfo("===========================================================");
- DroolsLog.printInfo("root_cleared_handle_Rule: rootId=" + $root.getEventId());
- DmaapService dmaapService = SpringContextUtil.getBean(DmaapService.class);
- PolicyMsg policyMsg = dmaapService.getPolicyMsg($root, null, "org.onap.holmes.droolsRule");
- dmaapService.publishPolicyMsg(policyMsg, "dcae_cl_out");
- retract($root);
-end
-
-rule "child_handle_Rule"
-salience 100
-no-loop true
- when
- $child : VesAlarm(alarmIsCleared == 1, rootFlag == 0)
- then
- DroolsLog.printInfo("===========================================================");
- DroolsLog.printInfo("child_handle_Rule: childId=" + $child.getEventId());
- retract($child);
-end \ No newline at end of file