eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject incubator-eagle git commit: EAGLE-242 Add notification metadata initialize script into topology init script
Date Tue, 12 Apr 2016 16:18:40 GMT
Repository: incubator-eagle
Updated Branches:
  refs/heads/master 60325aa2f -> 7cfb19e59


EAGLE-242 Add notification metadata initialize script into topology init script

https://issues.apache.org/jira/browse/EAGLE-242

Reviewer: @haoch <hao@apache.org>

Closes #143


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/7cfb19e5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/7cfb19e5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/7cfb19e5

Branch: refs/heads/master
Commit: 7cfb19e5937a7eb2c3a3c81cbfca5aa20d822d3f
Parents: 60325aa
Author: senthilkumar <senthikumar@ebay.com>
Authored: Tue Apr 12 16:36:18 2016 +0530
Committer: Hao Chen <hao@apache.org>
Committed: Wed Apr 13 00:07:43 2016 +0800

----------------------------------------------------------------------
 .../src/main/bin/eagle-topology-init.sh         | 41 ++++++++++++++++++++
 1 file changed, 41 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7cfb19e5/eagle-assembly/src/main/bin/eagle-topology-init.sh
----------------------------------------------------------------------
diff --git a/eagle-assembly/src/main/bin/eagle-topology-init.sh b/eagle-assembly/src/main/bin/eagle-topology-init.sh
index efda902..28af83b 100755
--- a/eagle-assembly/src/main/bin/eagle-topology-init.sh
+++ b/eagle-assembly/src/main/bin/eagle-topology-init.sh
@@ -137,6 +137,47 @@ echo "Importing AlertStreamService for USERPROFILE"
 curl -silent -u ${EAGLE_SERVICE_USER}:${EAGLE_SERVICE_PASSWD} -X POST -H "Content-Type: application/json"
 "http://$EAGLE_SERVICE_HOST:$EAGLE_SERVICE_PORT/eagle-service/rest/entities?serviceName=AlertStreamService"
\
      -d '[ { "prefix": "alertStream", "tags": { "streamName": "userActivity", "site":"sandbox",
"application":"userProfile" }, "alertExecutorIdList": [ "userProfileAnomalyDetectionExecutor"
] } ]'
 
+echo "Importing notification plugin configurations ... "
+
+curl -silent -u ${EAGLE_SERVICE_USER}:${EAGLE_SERVICE_PASSWD} -X POST -H 'Content-Type:application/json'
\
+ "http://${EAGLE_SERVICE_HOST}:${EAGLE_SERVICE_PORT}/eagle-service/rest/entities?serviceName=AlertNotificationService"
\
+ -d '
+ [
+     {
+       "prefix": "alertNotifications",
+       "tags": {
+         "notificationType": "email"
+       },
+       "className": "org.apache.eagle.notification.plugin.AlertEmailPlugin",
+       "description": "send alert to email",
+       "enabled":true
+     },
+     {
+       "prefix": "alertNotifications",
+       "tags": {
+         "notificationType": "kafka"
+       },
+       "className": "org.apache.eagle.notification.plugin.AlertKafkaPlugin",
+       "description": "send alert to kafka bus",
+       "enabled":true
+     },
+     {
+       "prefix": "alertNotifications",
+       "tags": {
+         "notificationType": "eagleStore"
+       },
+       "className": "org.apache.eagle.notification.plugin.AlertEagleStorePlugin",
+       "description": "send alert to eagle store",
+       "enabled":true
+     }
+ ]
+ '
+
+## Finished
+echo ""
+echo "Finished initialization for alert notification plugins"
+
+
 ## Finished
 echo ""
 echo "Finished initialization for eagle topology"


Mime
View raw message