Skip to content

Commit f6bfdf8

Browse files
authored
Update alert_structs.rs
add serde default Signed-off-by: parmesant <[email protected]>
1 parent 9e7716f commit f6bfdf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/alerts/alert_structs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ pub struct AlertRequest {
251251
pub query: String,
252252
pub alert_type: AlertType,
253253
pub threshold_config: ThresholdConfig,
254+
#[serde(default)]
254255
pub notification_config: NotificationConfig,
255256
pub eval_config: EvalConfig,
256257
pub targets: Vec<Ulid>,

0 commit comments

Comments
 (0)