|
@@ -7,7 +7,7 @@ import {t} from 'sentry/locale';
|
|
|
import {space} from 'sentry/styles/space';
|
|
|
import {Organization, Project} from 'sentry/types';
|
|
|
import {explodeFieldString, generateFieldAsString} from 'sentry/utils/discover/fields';
|
|
|
-import {hasDdmAlertsSupport} from 'sentry/utils/metrics/features';
|
|
|
+import {hasDDMExperimentalFeature} from 'sentry/utils/metrics/features';
|
|
|
import MriField from 'sentry/views/alerts/rules/metric/mriField';
|
|
|
import {Dataset} from 'sentry/views/alerts/rules/metric/types';
|
|
|
import {
|
|
@@ -105,7 +105,7 @@ export default function WizardField({
|
|
|
label: AlertWizardAlertNames.cls,
|
|
|
value: 'cls',
|
|
|
},
|
|
|
- ...(hasDdmAlertsSupport(organization)
|
|
|
+ ...(hasDDMExperimentalFeature(organization)
|
|
|
? [
|
|
|
{
|
|
|
label: AlertWizardAlertNames.custom_transactions,
|
|
@@ -116,9 +116,9 @@ export default function WizardField({
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- label: hasDdmAlertsSupport(organization) ? t('METRICS') : t('CUSTOM'),
|
|
|
+ label: hasDDMExperimentalFeature(organization) ? t('METRICS') : t('CUSTOM'),
|
|
|
options: [
|
|
|
- hasDdmAlertsSupport(organization)
|
|
|
+ hasDDMExperimentalFeature(organization)
|
|
|
? {
|
|
|
label: AlertWizardAlertNames.custom_metrics,
|
|
|
value: 'custom_metrics',
|
|
@@ -179,7 +179,7 @@ export default function WizardField({
|
|
|
model.setValue('alertType', option.value);
|
|
|
}}
|
|
|
/>
|
|
|
- {hasDdmAlertsSupport(organization) && alertType === 'custom_metrics' ? (
|
|
|
+ {hasDDMExperimentalFeature(organization) && alertType === 'custom_metrics' ? (
|
|
|
<MriField
|
|
|
project={project}
|
|
|
aggregate={aggregate}
|