@@ -125,13 +125,13 @@ pub enum AlertTask {
125
125
126
126
#[ derive( Default , Debug , serde:: Serialize , serde:: Deserialize , Clone ) ]
127
127
#[ serde( rename_all = "lowercase" ) ]
128
- pub enum AlertVerison {
128
+ pub enum AlertVersion {
129
129
V1 ,
130
130
#[ default]
131
131
V2 ,
132
132
}
133
133
134
- impl From < & str > for AlertVerison {
134
+ impl From < & str > for AlertVersion {
135
135
fn from ( value : & str ) -> Self {
136
136
match value {
137
137
"v1" => Self :: V1 ,
@@ -596,7 +596,7 @@ impl AlertRequest {
596
596
}
597
597
let datasets = resolve_stream_names ( & self . query ) ?;
598
598
let config = AlertConfig {
599
- version : AlertVerison :: from ( CURRENT_ALERTS_VERSION ) ,
599
+ version : AlertVersion :: from ( CURRENT_ALERTS_VERSION ) ,
600
600
id : Ulid :: new ( ) ,
601
601
severity : self . severity ,
602
602
title : self . title ,
@@ -617,7 +617,7 @@ impl AlertRequest {
617
617
#[ derive( Debug , serde:: Serialize , serde:: Deserialize , Clone ) ]
618
618
#[ serde( rename_all = "camelCase" ) ]
619
619
pub struct AlertConfig {
620
- pub version : AlertVerison ,
620
+ pub version : AlertVersion ,
621
621
#[ serde( default ) ]
622
622
pub id : Ulid ,
623
623
pub severity : Severity ,
@@ -653,7 +653,7 @@ impl AlertConfig {
653
653
654
654
// Create the migrated v2 alert
655
655
let migrated_alert = AlertConfig {
656
- version : AlertVerison :: V2 ,
656
+ version : AlertVersion :: V2 ,
657
657
id : basic_fields. id ,
658
658
severity : basic_fields. severity ,
659
659
title : basic_fields. title ,
0 commit comments