diff --git a/static/app/views/alerts/rules/metric/details/header.tsx b/static/app/views/alerts/rules/metric/details/header.tsx index 8670e9a1fb207a..f017411476a891 100644 --- a/static/app/views/alerts/rules/metric/details/header.tsx +++ b/static/app/views/alerts/rules/metric/details/header.tsx @@ -14,6 +14,8 @@ import type {Organization} from 'sentry/types/organization'; import type {Project} from 'sentry/types/project'; import type {MetricRule} from 'sentry/views/alerts/rules/metric/types'; import {getAlertRuleActionCategory} from 'sentry/views/alerts/rules/utils'; +import {AlertWizardAlertNames} from 'sentry/views/alerts/wizard/options'; +import {getAlertTypeFromAggregateDataset} from 'sentry/views/alerts/wizard/utils'; type Props = { hasMetricRuleDetailsError: boolean; @@ -52,13 +54,24 @@ function DetailsHeader({ const isSnoozed = rule?.snooze ?? false; + const ruleType = + rule && + getAlertTypeFromAggregateDataset({ + aggregate: rule.aggregate, + dataset: rule.dataset, + }); + return (