def iter_get_metric_data_v2(
self,
resource_arn: "capo_connect.types.arn.ARN",
start_time: "capo_connect.types.timestamp.Timestamp",
end_time: "capo_connect.types.timestamp.Timestamp",
filters: "capo_connect.types.filters_v2_list.FiltersV2List",
metrics: "capo_connect.types.metrics_v2.MetricsV2",
*,
config_overrides: Optional[ConnectClientConfig] = None,
interval: Optional[
"capo_connect.types.interval_details.IntervalDetails"
] = None,
groupings: Optional["capo_connect.types.groupings_v2.GroupingsV2"] = None,
next_token: Optional["capo_connect.types.next_token2500.NextToken2500"] = None,
max_results: Optional["capo_connect.types.max_result100.MaxResult100"] = None,
) -> "Iterator[capo_connect.types.get_metric_data_v2_response.GetMetricDataV2Response]":
_token = next_token
while True:
_response = self.get_metric_data_v2(
resource_arn,
start_time,
end_time,
filters,
metrics,
config_overrides=config_overrides,
interval=interval,
groupings=groupings,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break