Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A9772200B6B for ; Fri, 9 Sep 2016 13:45:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A744D160AB6; Fri, 9 Sep 2016 11:45:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CC274160AC2 for ; Fri, 9 Sep 2016 13:45:39 +0200 (CEST) Received: (qmail 30676 invoked by uid 500); 9 Sep 2016 11:45:39 -0000 Mailing-List: contact commits-help@eagle.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@eagle.incubator.apache.org Delivered-To: mailing list commits@eagle.incubator.apache.org Received: (qmail 30665 invoked by uid 99); 9 Sep 2016 11:45:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 11:45:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 875011A600A for ; Fri, 9 Sep 2016 11:45:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id HRhsU_TTty2h for ; Fri, 9 Sep 2016 11:45:36 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 508965FB6F for ; Fri, 9 Sep 2016 11:45:35 +0000 (UTC) Received: (qmail 30494 invoked by uid 99); 9 Sep 2016 11:45:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 11:45:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6634CE01BD; Fri, 9 Sep 2016 11:45:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ralphsu@apache.org To: commits@eagle.incubator.apache.org Date: Fri, 09 Sep 2016 11:45:34 -0000 Message-Id: <113e4d0cc4b24326a6cf3439f4167040@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] incubator-eagle git commit: EAGLE-531: Dedup alerts according to state change archived-at: Fri, 09 Sep 2016 11:45:40 -0000 Repository: incubator-eagle Updated Branches: refs/heads/master 4e7c5f2b7 -> 7f41d4278 http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7f41d427/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-mongo-statestore.conf ---------------------------------------------------------------------- diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-mongo-statestore.conf b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-mongo-statestore.conf new file mode 100644 index 0000000..8504b35 --- /dev/null +++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-mongo-statestore.conf @@ -0,0 +1,17 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You 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. +{ + "connection": "mongodb://localhost:27017" +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7f41d427/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-test.conf ---------------------------------------------------------------------- diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-test.conf b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-test.conf index 61b6b49..dc016f4 100755 --- a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-test.conf +++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/application-test.conf @@ -64,5 +64,6 @@ "index": "alert_metric_test" } } - } + }, + "connection": "mongodb://localhost:27017" } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7f41d427/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments-empty-dedup-field.json ---------------------------------------------------------------------- diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments-empty-dedup-field.json b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments-empty-dedup-field.json index f573034..56c4686 100644 --- a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments-empty-dedup-field.json +++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments-empty-dedup-field.json @@ -16,6 +16,8 @@ "smtp.port": "25" }, "dedupIntervalMin": "PT1M", + "dedupStateField": "state", + "dedupStateCloseValue": "CLOSE", "serializer": "org.apache.eagle.alert.engine.publisher.impl.StringEventSerializer" } ] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7f41d427/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments.json ---------------------------------------------------------------------- diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments.json b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments.json index 82a338d..d93b8e2 100644 --- a/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments.json +++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/test/resources/router/publishments.json @@ -19,6 +19,8 @@ "dedupFields": [ "appname" ], + "dedupStateField": "state", + "dedupStateCloseValue": "CLOSE", "serializer": "org.apache.eagle.alert.engine.publisher.impl.StringEventSerializer" } ] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7f41d427/eagle-core/eagle-alert-parent/eagle-alert/pom.xml ---------------------------------------------------------------------- diff --git a/eagle-core/eagle-alert-parent/eagle-alert/pom.xml b/eagle-core/eagle-alert-parent/eagle-alert/pom.xml index c5ed464..2ad8576 100644 --- a/eagle-core/eagle-alert-parent/eagle-alert/pom.xml +++ b/eagle-core/eagle-alert-parent/eagle-alert/pom.xml @@ -33,6 +33,10 @@ alert-service + + 1.50.5 + + @@ -291,6 +295,17 @@ commons-cli ${common.cli.version} + + org.mongodb + mongo-java-driver + ${mongodb.version} + + + de.flapdoodle.embed + de.flapdoodle.embed.mongo + ${embed.mongo.version} + test + http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7f41d427/eagle-dev/checkstyle.xml ---------------------------------------------------------------------- diff --git a/eagle-dev/checkstyle.xml b/eagle-dev/checkstyle.xml index b292542..1ff1d87 100644 --- a/eagle-dev/checkstyle.xml +++ b/eagle-dev/checkstyle.xml @@ -197,12 +197,14 @@ + http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7f41d427/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 0b9eeac..55f617b 100755 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ org.apache apache 14 - + org.apache.eagle eagle-parent 0.5.0-incubating-SNAPSHOT