Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(alerts): on demand metric alert chart #52962

Merged
merged 5 commits into from
Jul 21, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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