Skip to content

Commit 300a145

Browse files
authored
feat(types): Add support for new monitor config thresholds (#10225)
Update `MonitorConfig` to add support for `failure_issue_threshold` and `recovery_threshold`.
1 parent 2f3f544 commit 300a145

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/types/src/checkin.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,8 @@ export interface MonitorConfig {
8383
// A tz database string representing the timezone which the monitor's execution schedule is in.
8484
// See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
8585
timezone?: SerializedMonitorConfig['timezone'];
86+
// How many consecutive failed check-ins it takes to create an issue.
87+
failure_issue_threshold?: number;
88+
// How many consecutive OK check-ins it takes to resolve an issue.
89+
recovery_threshold?: number;
8690
}

0 commit comments

Comments
 (0)