Skip to content

Commit fe01d39

Browse files
update alert listing
1 parent 7df81df commit fe01d39

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/alerts/mod.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pub enum AlertType {
200200
impl Display for AlertType {
201201
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
202202
match self {
203-
AlertType::Threshold => write!(f, "Threshold"),
203+
AlertType::Threshold => write!(f, "threshold"),
204204
}
205205
}
206206
}
@@ -1224,6 +1224,16 @@ impl AlertConfig {
12241224
serde_json::Value::String(self.id.to_string()),
12251225
);
12261226

1227+
map.insert(
1228+
"severity".to_string(),
1229+
serde_json::Value::String(self.severity.to_string()),
1230+
);
1231+
1232+
map.insert(
1233+
"state".to_string(),
1234+
serde_json::Value::String(self.state.to_string()),
1235+
);
1236+
12271237
if let Some(tags) = &self.tags {
12281238
map.insert(
12291239
"tags".to_string(),

0 commit comments

Comments
 (0)