Skip to content

Commit

Permalink
check metric function as well as label to determine geo (#105671)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 authored Jul 15, 2021
1 parent 00cee5f commit 75e6b87
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,9 @@ export class AnomalyExplorerChartsService {
const config = seriesConfigs[i];
let records;
if (
config.detectorLabel !== undefined &&
config.detectorLabel.includes(ML_JOB_AGGREGATION.LAT_LONG)
(config.detectorLabel !== undefined &&
config.detectorLabel.includes(ML_JOB_AGGREGATION.LAT_LONG)) ||
config?.metricFunction === ML_JOB_AGGREGATION.LAT_LONG
) {
if (config.entityFields.length) {
records = [
Expand Down

0 comments on commit 75e6b87

Please sign in to comment.