@@ -1903,11 +1903,13 @@ async def get_lb_stats(
19031903 * ,
19041904 lb_id : str ,
19051905 region : Optional [Region ] = None ,
1906+ backend_id : Optional [str ] = None ,
19061907 ) -> LbStats :
19071908 """
19081909 Get usage statistics of a given load balancer.
19091910 :param region: Region to target. If none is passed will use default region from the config.
19101911 :param lb_id: Load Balancer ID.
1912+ :param backend_id: ID of the backend.
19111913 :return: :class:`LbStats <LbStats>`
19121914 :deprecated
19131915
@@ -1925,6 +1927,9 @@ async def get_lb_stats(
19251927 res = self ._request (
19261928 "GET" ,
19271929 f"/lb/v1/regions/{ param_region } /lbs/{ param_lb_id } /stats" ,
1930+ params = {
1931+ "backend_id" : backend_id ,
1932+ },
19281933 )
19291934
19301935 self ._throw_on_error (res )
@@ -4798,11 +4803,13 @@ async def get_lb_stats(
47984803 * ,
47994804 lb_id : str ,
48004805 zone : Optional [Zone ] = None ,
4806+ backend_id : Optional [str ] = None ,
48014807 ) -> LbStats :
48024808 """
48034809 Get usage statistics of a given Load Balancer.
48044810 :param zone: Zone to target. If none is passed will use default zone from the config.
48054811 :param lb_id: Load Balancer ID.
4812+ :param backend_id: ID of the backend.
48064813 :return: :class:`LbStats <LbStats>`
48074814 :deprecated
48084815
@@ -4818,6 +4825,9 @@ async def get_lb_stats(
48184825 res = self ._request (
48194826 "GET" ,
48204827 f"/lb/v1/zones/{ param_zone } /lbs/{ param_lb_id } /stats" ,
4828+ params = {
4829+ "backend_id" : backend_id ,
4830+ },
48214831 )
48224832
48234833 self ._throw_on_error (res )
0 commit comments