@@ -125,13 +125,13 @@ pub enum AlertTask {
125125
126126#[ derive( Default , Debug , serde:: Serialize , serde:: Deserialize , Clone ) ]
127127#[ serde( rename_all = "lowercase" ) ]
128- pub enum AlertVerison {
128+ pub enum AlertVersion {
129129 V1 ,
130130 #[ default]
131131 V2 ,
132132}
133133
134- impl From < & str > for AlertVerison {
134+ impl From < & str > for AlertVersion {
135135 fn from ( value : & str ) -> Self {
136136 match value {
137137 "v1" => Self :: V1 ,
@@ -596,7 +596,7 @@ impl AlertRequest {
596596 }
597597 let datasets = resolve_stream_names ( & self . query ) ?;
598598 let config = AlertConfig {
599- version : AlertVerison :: from ( CURRENT_ALERTS_VERSION ) ,
599+ version : AlertVersion :: from ( CURRENT_ALERTS_VERSION ) ,
600600 id : Ulid :: new ( ) ,
601601 severity : self . severity ,
602602 title : self . title ,
@@ -617,7 +617,7 @@ impl AlertRequest {
617617#[ derive( Debug , serde:: Serialize , serde:: Deserialize , Clone ) ]
618618#[ serde( rename_all = "camelCase" ) ]
619619pub struct AlertConfig {
620- pub version : AlertVerison ,
620+ pub version : AlertVersion ,
621621 #[ serde( default ) ]
622622 pub id : Ulid ,
623623 pub severity : Severity ,
@@ -653,7 +653,7 @@ impl AlertConfig {
653653
654654 // Create the migrated v2 alert
655655 let migrated_alert = AlertConfig {
656- version : AlertVerison :: V2 ,
656+ version : AlertVersion :: V2 ,
657657 id : basic_fields. id ,
658658 severity : basic_fields. severity ,
659659 title : basic_fields. title ,
0 commit comments