async def iter_batch_get_rum_metric_definitions(
self,
app_monitor_name: "capo_rum.types.app_monitor_name.AppMonitorName",
destination: "capo_rum.types.metric_destination.MetricDestination",
*,
config_overrides: Optional[AsyncRUMClientConfig] = None,
destination_arn: Optional[
"capo_rum.types.destination_arn.DestinationArn"
] = None,
max_results: Optional[
"capo_rum.types.max_results_integer.MaxResultsInteger"
] = None,
next_token: Optional[str] = None,
) -> "AsyncIterator[capo_rum.types.metric_definition.MetricDefinition]":
_token = next_token
while True:
_response = await self.batch_get_rum_metric_definitions(
app_monitor_name,
destination,
config_overrides=config_overrides,
destination_arn=destination_arn,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("metric_definitions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break