You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/08/05 21:15:58 UTC
[GitHub] [incubator-pinot] akshayrai commented on a change in pull request
#4495: [TE] [Composite-Alert] Adding Entity GroupKey with Whitelist
Template and Formatter
akshayrai commented on a change in pull request #4495: [TE] [Composite-Alert] Adding Entity GroupKey with Whitelist Template and Formatter
URL: https://github.com/apache/incubator-pinot/pull/4495#discussion_r310795458
##########
File path: thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/alert/content/EntityGroupKeyContentFormatter.java
##########
@@ -48,32 +50,40 @@
public class EntityGroupKeyContentFormatter extends BaseEmailContentFormatter{
private static final Logger LOG = LoggerFactory.getLogger(EntityGroupKeyContentFormatter.class);
- private static final String EMAIL_TEMPLATE = "emailTemplate";
- private static final String DEFAULT_EMAIL_TEMPLATE = "entity-groupkey-anomaly-report.ftl";
+ private static final String EMAIL_TEMPLATE = "entity-groupkey-anomaly-report.ftl";
+
+ static final String PROP_ENTITY_WHITELIST = "entityWhitelist";
static final String PROP_ANOMALY_SCORE = "groupScore";
static final String PROP_GROUP_KEY = "groupKey";
private DetectionConfigManager configDAO = null;
private Multimap<String, AnomalyReportEntity> entityToAnomaliesMap = ArrayListMultimap.create();
- private Map<String, List<AnomalyReportEntity>> entityToSortedAnomaliesMap = new HashMap<>();
+ private Multimap<String, AnomalyReportEntity> entityToSortedAnomaliesMap = ArrayListMultimap.create();
+ private Multimap<String, AnomalyReportEntity> whitelistMetricToAnomaliesMap = ArrayListMultimap.create();
Review comment:
Added
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org