File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ pub enum AlertType {
200
200
impl Display for AlertType {
201
201
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
202
202
match self {
203
- AlertType :: Threshold => write ! ( f, "Threshold " ) ,
203
+ AlertType :: Threshold => write ! ( f, "threshold " ) ,
204
204
}
205
205
}
206
206
}
@@ -1224,6 +1224,16 @@ impl AlertConfig {
1224
1224
serde_json:: Value :: String ( self . id . to_string ( ) ) ,
1225
1225
) ;
1226
1226
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
+
1227
1237
if let Some ( tags) = & self . tags {
1228
1238
map. insert (
1229
1239
"tags" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments