async def iter_search_insights(
self,
start_time_range: "capo_devops_guru.types.start_time_range.StartTimeRange",
type: "capo_devops_guru.types.insight_type.InsightType",
*,
config_overrides: Optional[AsyncDevOpsGuruClientConfig] = None,
filters: Optional[
"capo_devops_guru.types.search_insights_filters.SearchInsightsFilters"
] = None,
max_results: Optional[
"capo_devops_guru.types.search_insights_max_results.SearchInsightsMaxResults"
] = None,
next_token: Optional[
"capo_devops_guru.types.uuid_next_token.UuidNextToken"
] = None,
) -> "AsyncIterator[capo_devops_guru.types.search_insights_response.SearchInsightsResponse]":
_token = next_token
while True:
_response = await self.search_insights(
start_time_range,
type,
config_overrides=config_overrides,
filters=filters,
max_results=max_results,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break