Skip to content

iter_list_anomalies_for_insight

iter_list_anomalies_for_insight(
    insight_id: InsightId,
    *,
    config_overrides: Optional[DevOpsGuruClientConfig] = None,
    start_time_range: Optional[StartTimeRange] = None,
    max_results: Optional[ListAnomaliesForInsightMaxResults] = None,
    next_token: Optional[UuidNextToken] = None,
    account_id: Optional[AwsAccountId] = None,
    filters: Optional[ListAnomaliesForInsightFilters] = None,
) -> Iterator[ListAnomaliesForInsightResponse]
Source code in docs_src/capo_devops_guru/_services/dev_ops_guru.py
def iter_list_anomalies_for_insight(
    self,
    insight_id: "capo_devops_guru.types.insight_id.InsightId",
    *,
    config_overrides: Optional[DevOpsGuruClientConfig] = None,
    start_time_range: Optional[
        "capo_devops_guru.types.start_time_range.StartTimeRange"
    ] = None,
    max_results: Optional[
        "capo_devops_guru.types.list_anomalies_for_insight_max_results.ListAnomaliesForInsightMaxResults"
    ] = None,
    next_token: Optional[
        "capo_devops_guru.types.uuid_next_token.UuidNextToken"
    ] = None,
    account_id: Optional[
        "capo_devops_guru.types.aws_account_id.AwsAccountId"
    ] = None,
    filters: Optional[
        "capo_devops_guru.types.list_anomalies_for_insight_filters.ListAnomaliesForInsightFilters"
    ] = None,
) -> "Iterator[capo_devops_guru.types.list_anomalies_for_insight_response.ListAnomaliesForInsightResponse]":
    _token = next_token
    while True:
        _response = self.list_anomalies_for_insight(
            insight_id,
            config_overrides=config_overrides,
            start_time_range=start_time_range,
            max_results=max_results,
            next_token=_token,
            account_id=account_id,
            filters=filters,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break