{
export function IssueAlertOptions({
alertSetting = DEFAULT_ISSUE_ALERT_OPTIONS_VALUES.alertSetting,
- interval = DEFAULT_ISSUE_ALERT_OPTIONS_VALUES.interval,
- metric = DEFAULT_ISSUE_ALERT_OPTIONS_VALUES.metric,
- threshold = DEFAULT_ISSUE_ALERT_OPTIONS_VALUES.threshold,
notificationProps,
onFieldChange,
}: IssueAlertOptionsProps) {
const issueAlertOptionsChoices: Array<[RuleAction, React.ReactNode]> = [
[RuleAction.DEFAULT_ALERT, t('Alert me on high priority issues')],
- [
- RuleAction.CUSTOMIZED_ALERTS,
- tct('When there are more than [threshold][metric] a unique error in [interval]', {
- threshold: (
- // 80px is just enough to see 6 digits at a time
-
- {
- onFieldChange('threshold', e.target.value);
- }}
- data-test-id="range-input"
- />
-
- ),
- metric: (
- e.preventDefault()}>
-
- ),
- interval: (
- e.preventDefault()}>
-
- ),
- }),
- ],
[RuleAction.CREATE_ALERT_LATER, t("I'll create my own alerts later")],
];