Skip to content

Commit

Permalink
feat(alerts): on demand metric alert chart
Browse files Browse the repository at this point in the history
  • Loading branch information
obostjancic committed Jul 17, 2023
1 parent 17433de commit f167c5f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions static/app/views/alerts/rules/metric/details/metricChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import {
MetricRule,
TimePeriod,
} from 'sentry/views/alerts/rules/metric/types';
import {isOnDemandMetricAlert} from 'sentry/views/alerts/rules/metric/utils/onDemandMetricAlert';
import {getChangeStatus} from 'sentry/views/alerts/utils/getChangeStatus';
import {AlertWizardAlertNames} from 'sentry/views/alerts/wizard/options';
import {getAlertTypeFromAggregateDataset} from 'sentry/views/alerts/wizard/utils';
Expand Down Expand Up @@ -503,14 +502,6 @@ class MetricChart extends PureComponent<Props, State> {
newAlertOrQuery: false,
});

if (isOnDemandMetricAlert(rule.dataset, rule.query)) {
return this.renderEmpty(
t(
'This alert includes advanced conditions, which is a feature that is currently in early access. Charts are not yet supported at this time.'
)
);
}

return isCrashFreeAlert(dataset) ? (
<SessionsRequest
api={api}
Expand Down

0 comments on commit f167c5f

Please sign in to comment.