From 04eb53070aa6c647b99d1c63f63ecfba61872625 Mon Sep 17 00:00:00 2001 From: Bhinav Sura Date: Wed, 5 Oct 2016 13:00:12 -0700 Subject: [PATCH] Bugfix: Trimming of data to use query time window --- .../com/salesforce/dva/argus/service/tsdb/CachedTSDBService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ArgusCore/src/main/java/com/salesforce/dva/argus/service/tsdb/CachedTSDBService.java b/ArgusCore/src/main/java/com/salesforce/dva/argus/service/tsdb/CachedTSDBService.java index 1556ffe20..5bfc5a67f 100644 --- a/ArgusCore/src/main/java/com/salesforce/dva/argus/service/tsdb/CachedTSDBService.java +++ b/ArgusCore/src/main/java/com/salesforce/dva/argus/service/tsdb/CachedTSDBService.java @@ -448,6 +448,7 @@ private List _getCachedMetricValues(List quer if (!tagNameAndMetricMap.containsKey(metric.getTags().toString())) { combinedMetric = new Metric(metric); tagNameAndMetricMap.put(metric.getTags().toString(), combinedMetric); + combinedMetric.setDatapoints(null); } else { combinedMetric = tagNameAndMetricMap.get(metric.getTags().toString()); }