Skip to content

Commit 5c80011

Browse files
committed
Fix bad merge
1 parent 86b915f commit 5c80011

File tree

1 file changed

+0
-45
lines changed
  • x-pack/plugins/infra/public/alerting/metric_threshold/components

1 file changed

+0
-45
lines changed

x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.tsx

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -593,55 +593,10 @@ export const Expressions: React.FC<Props> = (props) => {
593593
);
594594
};
595595

596-
const previewOptions = [
597-
{
598-
value: 'h',
599-
text: i18n.translate('xpack.infra.metrics.alertFlyout.lastHourLabel', {
600-
defaultMessage: 'Last hour',
601-
}),
602-
shortText: i18n.translate('xpack.infra.metrics.alertFlyout.hourLabel', {
603-
defaultMessage: 'hour',
604-
}),
605-
},
606-
{
607-
value: 'd',
608-
text: i18n.translate('xpack.infra.metrics.alertFlyout.lastDayLabel', {
609-
defaultMessage: 'Last day',
610-
}),
611-
shortText: i18n.translate('xpack.infra.metrics.alertFlyout.dayLabel', {
612-
defaultMessage: 'day',
613-
}),
614-
},
615-
{
616-
value: 'w',
617-
text: i18n.translate('xpack.infra.metrics.alertFlyout.lastWeekLabel', {
618-
defaultMessage: 'Last week',
619-
}),
620-
shortText: i18n.translate('xpack.infra.metrics.alertFlyout.weekLabel', {
621-
defaultMessage: 'week',
622-
}),
623-
},
624-
{
625-
value: 'M',
626-
text: i18n.translate('xpack.infra.metrics.alertFlyout.lastMonthLabel', {
627-
defaultMessage: 'Last month',
628-
}),
629-
shortText: i18n.translate('xpack.infra.metrics.alertFlyout.monthLabel', {
630-
defaultMessage: 'month',
631-
}),
632-
},
633-
];
634596
const previewDOMOptions: Array<{ text: string; value: string }> = previewOptions.map((o) =>
635597
omit(o, 'shortText')
636598
);
637599

638-
const firedTimeLabel = i18n.translate('xpack.infra.metrics.alertFlyout.firedTime', {
639-
defaultMessage: 'time',
640-
});
641-
const firedTimesLabel = i18n.translate('xpack.infra.metrics.alertFlyout.firedTimes', {
642-
defaultMessage: 'times',
643-
});
644-
645600
// required for dynamic import
646601
// eslint-disable-next-line import/no-default-export
647602
export default Expressions;

0 commit comments

Comments
 (0)