You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "zhangxiaolu (JIRA)" <ji...@apache.org> on 2017/03/03 03:03:45 UTC
[jira] [Created] (AMBARI-20290) null in heapmap page
zhangxiaolu created AMBARI-20290:
------------------------------------
Summary: null in heapmap page
Key: AMBARI-20290
URL: https://issues.apache.org/jira/browse/AMBARI-20290
Project: Ambari
Issue Type: Bug
Affects Versions: trunk
Reporter: zhangxiaolu
Fix For: trunk
drawWidget: function () {
if (this.get('isLoaded')) {
var hostToValueMap = this.calculateValues();
var hostNames = [];
if (this.get('racks').everyProperty('isLoaded', true)) {
this.get('racks').forEach(function (rack) {
hostNames = hostNames.concat(rack.hosts.mapProperty('hostName'));
});
}
var metricObject = App.MainChartHeatmapMetric.create({
name: this.get('content.displayName'),
units: this.get('content.properties.display_unit'),
maximumValue: this.get('controller.inputMaximum'),
hostNames: hostNames,
hostToValueMap: hostToValueMap
});
this.set('controller.selectedMetric', metricObject);
App.loadTimer.finish('Heatmaps Page');
App.loadTimer.finish('Service Heatmaps Page');
}
}.observes('racks.@each.isLoaded'),
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)