File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -403,21 +403,23 @@ impl AlertConfig {
403
403
}
404
404
405
405
#[ derive( Debug , Serialize ) ]
406
+ #[ serde( rename_all = "camelCase" ) ]
406
407
pub struct AlertsSummary {
407
408
pub total : u64 ,
408
409
pub triggered : AlertsInfoByState ,
409
410
pub disabled : AlertsInfoByState ,
410
- #[ serde( rename = "not-triggered" ) ]
411
411
pub not_triggered : AlertsInfoByState ,
412
412
}
413
413
414
414
#[ derive( Debug , Serialize ) ]
415
+ #[ serde( rename_all = "camelCase" ) ]
415
416
pub struct AlertsInfoByState {
416
417
pub total : u64 ,
417
418
pub alert_info : Vec < AlertsInfo > ,
418
419
}
419
420
420
421
#[ derive( Debug , Serialize ) ]
422
+ #[ serde( rename_all = "camelCase" ) ]
421
423
pub struct AlertsInfo {
422
424
pub title : String ,
423
425
pub id : Ulid ,
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ pub struct DatedStats {
59
59
}
60
60
61
61
#[ derive( Debug , Serialize ) ]
62
+ #[ serde( rename_all = "camelCase" ) ]
62
63
pub struct DataSet {
63
64
title : String ,
64
65
dataset_type : TelemetryType ,
@@ -67,6 +68,7 @@ pub struct DataSet {
67
68
}
68
69
69
70
#[ derive( Debug , Serialize ) ]
71
+ #[ serde( rename_all = "camelCase" ) ]
70
72
pub struct HomeResponse {
71
73
pub alerts_summary : AlertsSummary ,
72
74
pub stats_details : Vec < DatedStats > ,
You can’t perform that action at this time.
0 commit comments