ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject git commit: AMBARI-6452. Incorrect hosts count in Flume summary. (akovalenko)
Date Thu, 10 Jul 2014 13:51:32 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk eacdb2c46 -> 4b3ab24fc


AMBARI-6452. Incorrect hosts count in Flume summary. (akovalenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4b3ab24f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4b3ab24f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4b3ab24f

Branch: refs/heads/trunk
Commit: 4b3ab24fc6a0dee2a5dacb7b660e74f880e9cc56
Parents: eacdb2c
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Thu Jul 10 16:48:33 2014 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Thu Jul 10 16:50:58 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/service_metrics_mapper.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4b3ab24f/ambari-web/app/mappers/service_metrics_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/service_metrics_mapper.js b/ambari-web/app/mappers/service_metrics_mapper.js
index ba3c810..83aa304 100644
--- a/ambari-web/app/mappers/service_metrics_mapper.js
+++ b/ambari-web/app/mappers/service_metrics_mapper.js
@@ -145,6 +145,9 @@ App.serviceMetricsMapper = App.QuickDataMapper.create({
     super_visors_installed: 'super_visors_installed',
     super_visors_total: 'super_visors_total'
   },
+  flumeConfig: {
+    flume_handlers_total: 'flume_handlers_total'
+  },
   flumeAgentConfig: {
     name: 'HostComponentProcess.name',
     status: 'HostComponentProcess.status',
@@ -597,7 +600,10 @@ App.serviceMetricsMapper = App.QuickDataMapper.create({
    */
   flumeMapper: function (item) {
     var self = this;
-    var finalJson = self.parseIt(item, self.config);
+    var finalConfig = jQuery.extend({}, this.config);
+    var flumeConfig = this.flumeConfig;
+    finalConfig = jQuery.extend(finalConfig, flumeConfig);
+    var finalJson = self.parseIt(item, finalConfig);
     var flumeHandlers = item.components[0].host_components;
     finalJson.agents = [];
     finalJson.agentJsons = [];


Mime
View raw message