You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@griffin.apache.org by gu...@apache.org on 2018/02/12 09:24:43 UTC
incubator-griffin git commit: fix bug of get metrics
Repository: incubator-griffin
Updated Branches:
refs/heads/master 9e7fdfa3d -> 5507f5754
fix bug of get metrics
Author: Lionel Liu <bh...@163.com>
Closes #224 from bhlx3lyx7/tmst.
Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/5507f575
Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/5507f575
Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/5507f575
Branch: refs/heads/master
Commit: 5507f5754d7752f71876bc8ae6fe9865250326f3
Parents: 9e7fdfa
Author: Lionel Liu <bh...@163.com>
Authored: Mon Feb 12 17:24:38 2018 +0800
Committer: Lionel Liu <bh...@163.com>
Committed: Mon Feb 12 17:24:38 2018 +0800
----------------------------------------------------------------------
.../java/org/apache/griffin/core/metric/MetricStoreImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/5507f575/service/src/main/java/org/apache/griffin/core/metric/MetricStoreImpl.java
----------------------------------------------------------------------
diff --git a/service/src/main/java/org/apache/griffin/core/metric/MetricStoreImpl.java b/service/src/main/java/org/apache/griffin/core/metric/MetricStoreImpl.java
index 6391cbe..c3243fc 100644
--- a/service/src/main/java/org/apache/griffin/core/metric/MetricStoreImpl.java
+++ b/service/src/main/java/org/apache/griffin/core/metric/MetricStoreImpl.java
@@ -102,8 +102,8 @@ public class MetricStoreImpl implements MetricStore {
private HttpEntity getHttpEntityForSearch(String metricName, int from, int size, long tmst) throws JsonProcessingException {
Map<String, Object> map = new HashMap<>();
Map<String, Object> queryParam = new HashMap<>();
- Map<String, Object> rangeQuery = Collections.singletonMap("tmst", Collections.singletonMap("gte", tmst));
- queryParam.put("must", Collections.singletonMap("range", rangeQuery));
+// Map<String, Object> rangeQuery = Collections.singletonMap("tmst", Collections.singletonMap("gte", tmst));
+// queryParam.put("must", Collections.singletonMap("range", rangeQuery));
Map<String, Object> termQuery = Collections.singletonMap("name.keyword", metricName);
queryParam.put("filter", Collections.singletonMap("term", termQuery));
Map<String, Object> sortParam = Collections.singletonMap("tmst", Collections.singletonMap("order", "desc"));