eagle-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EAGLE-993) add duplicate removal settings in policy definition
Date Thu, 27 Apr 2017 14:08:04 GMT

    [ https://issues.apache.org/jira/browse/EAGLE-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15986677#comment-15986677
] 

ASF GitHub Bot commented on EAGLE-993:
--------------------------------------

Github user qingwen220 commented on a diff in the pull request:

    https://github.com/apache/eagle/pull/926#discussion_r113704536
  
    --- Diff: eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/runner/AlertPublisherBolt.java
---
    @@ -87,6 +90,12 @@ public void execute(Tuple input) {
                 if (logEventEnabled) {
                     LOG.info("Alert publish bolt {}/{} with partition {} received event:
{}", this.getBoltId(), this.context.getThisTaskId(), partition, event);
                 }
    +            if (deduplicatorMap != null && deduplicatorMap.containsKey(event.getPolicyId()))
{
    +                List<AlertStreamEvent> eventList = deduplicatorMap.get(event.getPolicyId()).dedup(event);
    +                if (eventList == null || eventList.isEmpty()) {
    +                    return;
    --- End diff --
    
    You are right. Thanks


> add duplicate removal settings in policy definition
> ---------------------------------------------------
>
>                 Key: EAGLE-993
>                 URL: https://issues.apache.org/jira/browse/EAGLE-993
>             Project: Eagle
>          Issue Type: Improvement
>    Affects Versions: v0.5.0
>            Reporter: Zhao, Qingwen
>            Assignee: Zhao, Qingwen
>
> customize duplicate fields & interval in each policy



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message