Skip to content

Commit f10b28a

Browse files
authored
update: add last triggered at to alerts summary (#1420)
1 parent df2b378 commit f10b28a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/alerts/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,13 @@ impl AlertConfig {
676676
),
677677
);
678678

679+
if let Some(ts) = self.last_triggered_at {
680+
map.insert(
681+
"lastTriggeredAt".to_string(),
682+
serde_json::Value::String(ts.to_string()),
683+
);
684+
}
685+
679686
map
680687
}
681688
}

0 commit comments

Comments
 (0)