From 8b1b4267330f02a66708526f79b748cb8874e362 Mon Sep 17 00:00:00 2001 From: Carl Case Date: Fri, 14 Jun 2013 17:27:37 -0700 Subject: [PATCH] Update filter cache stats for latest stats API --- js/charts/bigdesk_charts.js | 4 ++-- js/views/SelectedClusterNodeView.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/charts/bigdesk_charts.js b/js/charts/bigdesk_charts.js index 075ab05..df801d1 100644 --- a/js/charts/bigdesk_charts.js +++ b/js/charts/bigdesk_charts.js @@ -813,7 +813,7 @@ bigdesk_charts.indicesCacheSize = { return stats.map(function(snapshot){ return { timestamp: +snapshot.id, - value: +snapshot.node.indices.cache.filter_size_in_bytes + value: +snapshot.node.indices.filter_cache.memory_size_in_bytes } }) } @@ -847,7 +847,7 @@ bigdesk_charts.indicesCacheEvictions = { return stats.map(function(snapshot){ return { timestamp: +snapshot.id, - value: +snapshot.node.indices.cache.filter_evictions + value: +snapshot.node.indices.filter_cache.evictions } }) } diff --git a/js/views/SelectedClusterNodeView.js b/js/views/SelectedClusterNodeView.js index 321faf0..2a8d0f7 100644 --- a/js/views/SelectedClusterNodeView.js +++ b/js/views/SelectedClusterNodeView.js @@ -585,8 +585,8 @@ var SelectedClusterNodeView = Backbone.View.extend({ try { chart_indicesCacheSize.animate(animatedCharts).update(indices_cache_field_size, indices_cache_filter_size); } catch (ignore) {} - if (stats_the_latest.node && stats_the_latest.node.indices && stats_the_latest.node.indices.cache) { - $("#indices_filter_cache_size").text(stats_the_latest.node.indices.cache.filter_size); + if (stats_the_latest.node && stats_the_latest.node.indices && stats_the_latest.node.indices.filter_cache) { + $("#indices_filter_cache_size").text(stats_the_latest.node.indices.filter_cache.memory_size); $("#indices_field_cache_size").text(stats_the_latest.node.indices.fielddata.memory_size); } else { $("#indices_filter_cache_size").text("n/a"); @@ -608,7 +608,7 @@ var SelectedClusterNodeView = Backbone.View.extend({ try { chart_indicesCacheEvictions.animate(animatedCharts).update(indices_cache_field_evictions, indices_cache_filter_evictions); } catch (ignore) {} - $("#indices_filter_cache_evictions").text(stats_the_latest.node.indices.cache.filter_evictions); + $("#indices_filter_cache_evictions").text(stats_the_latest.node.indices.filter_cache.evictions); $("#indices_field_cache_evictions").text(stats_the_latest.node.indices.fielddata.evictions); }