Skip to content

Commit

Permalink
rename to failure_issue_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
rjo100 committed Aug 10, 2023
1 parent 8b1c364 commit 4bf6e38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sentry/monitors/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"schedule_type": {"type": "integer"},
"schedule": {"type": ["string", "array"]},
"alert_rule_id": {"type": ["integer", "null"]},
"issue_threshold": {"type": ["integer", "null"]},
"failure_issue_threshold": {"type": ["integer", "null"]},
"recovery_threshold": {"type": ["integer", "null"]},
},
# TODO(davidenwang): Old monitors may not have timezone or schedule_type, these should be added here once we've cleaned up old data
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/monitors/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class ConfigValidator(serializers.Serializer):
help_text="tz database style timezone string",
)

issue_threshold = EmptyIntegerField(
failure_issue_threshold = EmptyIntegerField(
required=False,
allow_null=True,
default=None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def test_simple(self, mock_record):
"schedule": "0 0 * * *",
"checkin_margin": None,
"max_runtime": None,
"issue_threshold": None,
"failure_issue_threshold": None,
"recovery_threshold": None,
}

Expand Down

0 comments on commit 4bf6e38

Please sign in to comment.