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 {
200200impl 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 ( ) ,
You can’t perform that action at this time.
0 commit comments