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 094fffa [TE] frontend - harleyjj/rca - add link from RCA to Alert
Overview whe RCA is exploring an anomaly (#4822)
094fffa is described below
commit 094fffa822e3c4c8bb340f06db2c35e8856b233f
Author: Harley Jackson <[email protected]>
AuthorDate: Wed Nov 13 19:07:51 2019 -0800
[TE] frontend - harleyjj/rca - add link from RCA to Alert Overview whe RCA
is exploring an anomaly (#4822)
---
.../app/pods/components/rootcause-anomaly/component.js | 7 ++++++-
.../app/pods/components/rootcause-anomaly/template.hbs | 8 +++++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git
a/thirdeye/thirdeye-frontend/app/pods/components/rootcause-anomaly/component.js
b/thirdeye/thirdeye-frontend/app/pods/components/rootcause-anomaly/component.js
index 1105ed1..db1952b 100644
---
a/thirdeye/thirdeye-frontend/app/pods/components/rootcause-anomaly/component.js
+++
b/thirdeye/thirdeye-frontend/app/pods/components/rootcause-anomaly/component.js
@@ -1,7 +1,6 @@
import Component from "@ember/component";
import {
computed,
- observer,
setProperties,
getProperties,
get,
@@ -152,6 +151,12 @@ export default Component.extend({
functionName: reads('anomaly.attributes.function.firstObject'),
/**
+ * Anomaly detection (alert) id
+ * @type {string}
+ */
+ detectionConfigId: reads('anomaly.attributes.detectionConfigId.firstObject'),
+
+ /**
* Anomaly metric name from anomaly attributes
* @type {string}
*/
diff --git
a/thirdeye/thirdeye-frontend/app/pods/components/rootcause-anomaly/template.hbs
b/thirdeye/thirdeye-frontend/app/pods/components/rootcause-anomaly/template.hbs
index 6f9928c..62d9cdc 100644
---
a/thirdeye/thirdeye-frontend/app/pods/components/rootcause-anomaly/template.hbs
+++
b/thirdeye/thirdeye-frontend/app/pods/components/rootcause-anomaly/template.hbs
@@ -1,7 +1,13 @@
{{#if anomaly}}
<div class="row card-container card-container--md
card-container--box-shadow">
<div class="rootcause-anomaly__header">
- <span class="rootcause-anomaly__title">Anomaly #{{anomalyId}}
{{functionName}}</span>
+ {{#if detectionConfigId}}
+ <span class="rootcause-anomaly__title">
+ Anomaly #{{anomalyId}} {{#link-to "manage.explore"
detectionConfigId}}{{functionName}}{{/link-to}}
+ </span>
+ {{else}}
+ <span class="rootcause-anomaly__title">Anomaly #{{anomalyId}}
{{functionName}}</span>
+ {{/if}}
{{#each-in anomalyLinks as |type url|}}
<span class="rootcause-anomaly__link">
<a target="_blank" href="{{url}}">{{type}}</a>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]