fix:query_range接口start end 时间改为unit timestemp

This commit is contained in:
wangwenrui
2020-05-15 14:54:51 +08:00
parent 97f50ff44f
commit b374f52050
14 changed files with 38 additions and 20 deletions

View File

@@ -672,8 +672,8 @@
metricString = metricString.substring(0, metricString.length-1);
metricString += "}";
let params = {
start: before,
end: end,
start: this.$stringTimeParseToUnix(before),
end: this.$stringTimeParseToUnix(end),
step: bus.getStep(before, end),
query: 'sum(irate(' + rule + metricString + '[' + (this.trendSearchParam.timeRange ? this.trendSearchParam.timeRange : "1h") + ']))'
};