Browse Source

fix(crons): Add mnimum for {failure_issue,recovery}_threshold (#56903)

Evan Purkhiser 1 year ago
parent
commit
6d6ae4fc62
1 changed files with 2 additions and 0 deletions
  1. 2 0
      static/app/views/monitors/components/monitorForm.tsx

+ 2 - 0
static/app/views/monitors/components/monitorForm.tsx

@@ -432,12 +432,14 @@ function MonitorForm({
                 <Fragment>
                   <NumberField
                     name="config.failure_issue_threshold"
+                    min={1}
                     placeholder="1"
                     help={t('Create an issue after this many missed or error check-ins')}
                     label={t('Tolerate Failures')}
                   />
                   <NumberField
                     name="config.recovery_threshold"
+                    min={1}
                     placeholder="1"
                     help={t('Recover monitor status after this many healthy check-ins')}
                     label={t('Recovery Threshold')}