@@ -19,8 +19,9 @@ pub(crate) struct SquadsMetrics {
1919 pub ( crate ) no_config : u64 ,
2020 /// dispatch_slack called but no webhook URLs resolved from the destination list.
2121 pub ( crate ) no_webhook : u64 ,
22- /// At least one webhook failed while at least one succeeded in the same dispatch.
23- pub ( crate ) partial_webhook_failure : u64 ,
22+ /// A Squads webhook dispatch had at least one delivery failure.
23+ /// This is the single alert surface for both partial and total webhook failure.
24+ pub ( crate ) webhook_failure : u64 ,
2425 /// Total individual webhook HTTP/transport errors across all dispatches.
2526 pub ( crate ) webhook_errors : u64 ,
2627}
@@ -116,9 +117,9 @@ impl EpochMetrics {
116117 self . emit_live_metric ( "jito-bell-squads-no-webhook" , 1 ) ;
117118 }
118119
119- pub fn increment_squads_partial_webhook_failure ( & mut self ) {
120- self . squads . partial_webhook_failure += 1 ;
121- self . emit_live_metric ( "jito-bell-squads-partial- webhook-failure" , 1 ) ;
120+ pub fn increment_squads_webhook_failure ( & mut self ) {
121+ self . squads . webhook_failure += 1 ;
122+ self . emit_live_metric ( "jito-bell-squads-webhook-failure" , 1 ) ;
122123 }
123124
124125 pub fn increment_squads_webhook_errors ( & mut self ) {
0 commit comments