def iter_list_problems(
self,
*,
config_overrides: Optional[ApplicationInsightsClientConfig] = None,
account_id: Optional[
"capo_application_insights.types.account_id.AccountId"
] = None,
resource_group_name: Optional[
"capo_application_insights.types.resource_group_name.ResourceGroupName"
] = None,
start_time: Optional[
"capo_application_insights.types.start_time.StartTime"
] = None,
end_time: Optional["capo_application_insights.types.end_time.EndTime"] = None,
max_results: Optional[
"capo_application_insights.types.max_entities.MaxEntities"
] = None,
next_token: Optional[
"capo_application_insights.types.pagination_token.PaginationToken"
] = None,
component_name: Optional[
"capo_application_insights.types.component_name.ComponentName"
] = None,
visibility: Optional[
"capo_application_insights.types.visibility.Visibility"
] = None,
) -> "Iterator[capo_application_insights.types.list_problems_response.ListProblemsResponse]":
_token = next_token
while True:
_response = self.list_problems(
config_overrides=config_overrides,
account_id=account_id,
resource_group_name=resource_group_name,
start_time=start_time,
end_time=end_time,
max_results=max_results,
next_token=_token,
component_name=component_name,
visibility=visibility,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break