Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Sep 30, 2024
1 parent cf339ed commit 8bbdb96
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ import {
} from '../../../common/runtime_types/alert_rules/common';
import { queryFilterMonitors } from './queries/filter_monitors';
import { MonitorSummaryStatusRule, StatusRuleExecutorOptions } from './types';
import { getFullViewInAppMessage, getRelativeViewInAppUrl, getViewInAppUrl } from '../common';
import {
AND_LABEL,
getFullViewInAppMessage,
getRelativeViewInAppUrl,
getViewInAppUrl,
} from '../common';
import {
DOWN_LABEL,
getMonitorAlertDocument,
Expand Down Expand Up @@ -345,7 +350,9 @@ export class StatusRuleExecutor {
params: this.params,
});
if (statusConfigs.length > 1) {
baseSummary.locationNames = statusConfigs.map((c) => c.ping.observer.geo?.name!).join(' | ');
baseSummary.locationNames = statusConfigs
.map((c) => c.ping.observer.geo?.name!)
.join(` ${AND_LABEL} `);
}

return baseSummary;
Expand Down

0 comments on commit 8bbdb96

Please sign in to comment.