xiaohui-sun closed pull request #3637: [TE] detection - fix yaml translator
URL: https://github.com/apache/incubator-pinot/pull/3637
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/yaml/YamlDetectionAlertConfigTranslator.java
b/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/yaml/YamlDetectionAlertConfigTranslator.java
index db87d80368..e88cbbff44 100644
---
a/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/yaml/YamlDetectionAlertConfigTranslator.java
+++
b/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/yaml/YamlDetectionAlertConfigTranslator.java
@@ -96,7 +96,7 @@ public DetectionAlertConfigDTO
generateDetectionAlertConfig(Map<String, Object>
Map<String, Object> properties = new HashMap<>();
for (Map.Entry<String, Object> entry : alertYamlConfigs.entrySet()) {
if (entry.getKey().equals(PROP_TYPE)) {
- properties.put(PROP_CLASS_NAME,
DETECTION_REGISTRY.lookup(MapUtils.getString(alertYamlConfigs, PROP_TYPE)));
+ properties.put(PROP_CLASS_NAME,
DETECTION_ALERT_REGISTRY.lookupAlertSchemes(MapUtils.getString(alertYamlConfigs,
PROP_TYPE)));
} else {
if (PROPERTY_KEYS.contains(entry.getKey())) {
properties.put(entry.getKey(), entry.getValue());
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]