This is an automated email from the ASF dual-hosted git repository.
xhsun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 694f6d7 [TE] rootcause - pin predicted baseline time offsets to PT
too (#3596)
694f6d7 is described below
commit 694f6d76e15f785ac9f150e60d0822703d71b2e8
Author: Alexander Pucher <[email protected]>
AuthorDate: Mon Dec 10 11:32:19 2018 -0800
[TE] rootcause - pin predicted baseline time offsets to PT too (#3596)
---
.../app/pods/services/rootcause-anomalyfunction-cache/service.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/thirdeye/thirdeye-frontend/app/pods/services/rootcause-anomalyfunction-cache/service.js
b/thirdeye/thirdeye-frontend/app/pods/services/rootcause-anomalyfunction-cache/service.js
index 48d6317..c48b8d4 100644
---
a/thirdeye/thirdeye-frontend/app/pods/services/rootcause-anomalyfunction-cache/service.js
+++
b/thirdeye/thirdeye-frontend/app/pods/services/rootcause-anomalyfunction-cache/service.js
@@ -1,11 +1,11 @@
import Service from '@ember/service';
import {
toFilters,
+ makeTime
} from 'thirdeye-frontend/utils/rca-utils';
import { checkStatus } from 'thirdeye-frontend/utils/utils';
import fetch from 'fetch';
import _ from 'lodash';
-import moment from 'moment';
export default Service.extend({
timeseries: null, // {}
@@ -91,8 +91,8 @@ export default Service.extend({
_fetchSlice(urn, context) {
const functionId = urn.split(':')[2];
- const startDateTime = moment(context.analysisRange[0]).utc().format();
- const endDateTime = moment(context.analysisRange[1]).utc().format();
+ const startDateTime = makeTime(context.analysisRange[0]).utc().format();
+ const endDateTime = makeTime(context.analysisRange[1]).utc().format();
const dimensionJsonString =
encodeURIComponent(JSON.stringify(this._toFilterMapCustom(toFilters(urn))));
const url =
`/dashboard/anomaly-function/${functionId}/baseline?start=${startDateTime}&end=${endDateTime}&dimension=${dimensionJsonString}&mode=offline`;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]