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(crons): Add new fields to MonitorConfig type #638

Merged
merged 2 commits into from
Jan 29, 2024
Merged
Changes from 1 commit
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
8 changes: 8 additions & 0 deletions sentry-types/src/protocol/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ pub struct MonitorConfig {
/// tz database style timezone string
#[serde(default, skip_serializing_if = "Option::is_none")]
pub timezone: Option<String>,

/// The number of consecutive failed/error check-ins that triggers issue creation.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub failure_issue_threshold: Option<u64>,

/// The number of consecutive successful check-ins that triggers issue resolution.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub recovery_threshold: Option<u64>,
}

fn serialize_id<S: Serializer>(uuid: &Uuid, serializer: S) -> Result<S::Ok, S::Error> {
Expand Down
Loading