@@ -230,6 +230,8 @@ pub struct ListDegradationsOptionalParams {
230230 pub include : Option < String > ,
231231 /// Optional degradation status filter. Supported values: investigating, identified, monitoring, resolved.
232232 pub filter_status : Option < String > ,
233+ /// Optional source ID filter. Returns only degradations whose source matches this ID (e.g. an incident ID).
234+ pub filter_source_id : Option < String > ,
233235 /// Sort order. Prefix with '-' for descending. Supported values: created_at, -created_at, modified_at, -modified_at.
234236 pub sort : Option < String > ,
235237}
@@ -260,6 +262,11 @@ impl ListDegradationsOptionalParams {
260262 self . filter_status = Some ( value) ;
261263 self
262264 }
265+ /// Optional source ID filter. Returns only degradations whose source matches this ID (e.g. an incident ID).
266+ pub fn filter_source_id ( mut self , value : String ) -> Self {
267+ self . filter_source_id = Some ( value) ;
268+ self
269+ }
263270 /// Sort order. Prefix with '-' for descending. Supported values: created_at, -created_at, modified_at, -modified_at.
264271 pub fn sort ( mut self , value : String ) -> Self {
265272 self . sort = Some ( value) ;
@@ -2776,7 +2783,7 @@ impl StatusPagesAPI {
27762783 }
27772784 }
27782785
2779- /// Lists all degradations for the organization. Optionally filter by status and page .
2786+ /// Lists all degradations for the organization. Optionally filter by status, page, and source ID .
27802787 pub async fn list_degradations (
27812788 & self ,
27822789 params : ListDegradationsOptionalParams ,
@@ -2796,7 +2803,7 @@ impl StatusPagesAPI {
27962803 }
27972804 }
27982805
2799- /// Lists all degradations for the organization. Optionally filter by status and page .
2806+ /// Lists all degradations for the organization. Optionally filter by status, page, and source ID .
28002807 pub async fn list_degradations_with_http_info (
28012808 & self ,
28022809 params : ListDegradationsOptionalParams ,
@@ -2813,6 +2820,7 @@ impl StatusPagesAPI {
28132820 let page_limit = params. page_limit ;
28142821 let include = params. include ;
28152822 let filter_status = params. filter_status ;
2823+ let filter_source_id = params. filter_source_id ;
28162824 let sort = params. sort ;
28172825
28182826 let local_client = & self . client ;
@@ -2844,6 +2852,10 @@ impl StatusPagesAPI {
28442852 local_req_builder =
28452853 local_req_builder. query ( & [ ( "filter[status]" , & local_query_param. to_string ( ) ) ] ) ;
28462854 } ;
2855+ if let Some ( ref local_query_param) = filter_source_id {
2856+ local_req_builder =
2857+ local_req_builder. query ( & [ ( "filter[source_id]" , & local_query_param. to_string ( ) ) ] ) ;
2858+ } ;
28472859 if let Some ( ref local_query_param) = sort {
28482860 local_req_builder =
28492861 local_req_builder. query ( & [ ( "sort" , & local_query_param. to_string ( ) ) ] ) ;
0 commit comments