You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ji...@apache.org on 2019/02/08 01:04:16 UTC
[incubator-pinot] branch master updated: [TE] dashboard link point
to yaml if the anomaly is detected by new pipeline (#3805)
This is an automated email from the ASF dual-hosted git repository.
jihao 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 cd2dc04 [TE] dashboard link point to yaml if the anomaly is detected by new pipeline (#3805)
cd2dc04 is described below
commit cd2dc049943fcf76ad7ced6edf1067d816d38081
Author: Jihao Zhang <ji...@linkedin.com>
AuthorDate: Thu Feb 7 17:04:12 2019 -0800
[TE] dashboard link point to yaml if the anomaly is detected by new pipeline (#3805)
dashboard link point to yaml if the anomaly is detected by the new pipeline
---
thirdeye/thirdeye-frontend/app/models/anomalies.js | 3 ++-
.../app/pods/custom/anomalies-table/dimensions/template.hbs | 12 +++++++++---
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/thirdeye/thirdeye-frontend/app/models/anomalies.js b/thirdeye/thirdeye-frontend/app/models/anomalies.js
index 08f8b5e..79a5333 100644
--- a/thirdeye/thirdeye-frontend/app/models/anomalies.js
+++ b/thirdeye/thirdeye-frontend/app/models/anomalies.js
@@ -15,6 +15,7 @@ export default DS.Model.extend({
functionName: DS.attr(),
functionId: DS.attr(),
dataset: DS.attr(),
- classification: DS.attr()
+ classification: DS.attr(),
+ detectionConfigId: DS.attr()
});
//DEMO: avoidTheSharedObject: attr('object', { defaultValue: () => {} })
diff --git a/thirdeye/thirdeye-frontend/app/pods/custom/anomalies-table/dimensions/template.hbs b/thirdeye/thirdeye-frontend/app/pods/custom/anomalies-table/dimensions/template.hbs
index 1489cf7..411b2f0 100644
--- a/thirdeye/thirdeye-frontend/app/pods/custom/anomalies-table/dimensions/template.hbs
+++ b/thirdeye/thirdeye-frontend/app/pods/custom/anomalies-table/dimensions/template.hbs
@@ -1,8 +1,14 @@
<ul class="te-anomaly-table__list">
<li class="te-anomaly-table__list-item" title="{{record.anomaly.functionName}}">
- {{#link-to "manage.alert.explore" record.anomaly.functionId (query-params duration=record.queryDuration startDate=record.queryStart openReport=false endDate=record.queryEnd) class="te-anomaly-table__link"}}
- {{record.anomaly.functionName}}
- {{/link-to}}
+ {{#if record.anomaly.detectionConfigId}}
+ {{#link-to "manage.yaml" record.anomaly.detectionConfigId class="te-anomaly-table__link"}}
+ {{record.anomaly.functionName}}
+ {{/link-to}}
+ {{else}}
+ {{#link-to "manage.alert.explore" record.anomaly.functionId (query-params duration=record.queryDuration startDate=record.queryStart openReport=false endDate=record.queryEnd) class="te-anomaly-table__link"}}
+ {{record.anomaly.functionName}}
+ {{/link-to}}
+ {{/if}}
</li>
{{#each-in record.anomaly.dimensions as |dimName dimList|}}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org