Skip to content

iter_list_profile_times async

iter_list_profile_times(
    profiling_group_name: ProfilingGroupName,
    start_time: Timestamp,
    end_time: Timestamp,
    period: AggregationPeriod,
    *,
    config_overrides: Optional[AsyncCodeGuruProfilerClientConfig] = None,
    order_by: Optional[OrderBy] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[ProfileTime]
Source code in docs_src/capo_codeguruprofiler/_services/async_code_guru_profiler.py
async def iter_list_profile_times(
    self,
    profiling_group_name: "capo_codeguruprofiler.types.profiling_group_name.ProfilingGroupName",
    start_time: "capo_codeguruprofiler.types.timestamp.Timestamp",
    end_time: "capo_codeguruprofiler.types.timestamp.Timestamp",
    period: "capo_codeguruprofiler.types.aggregation_period.AggregationPeriod",
    *,
    config_overrides: Optional[AsyncCodeGuruProfilerClientConfig] = None,
    order_by: Optional["capo_codeguruprofiler.types.order_by.OrderBy"] = None,
    max_results: Optional[
        "capo_codeguruprofiler.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_codeguruprofiler.types.pagination_token.PaginationToken"
    ] = None,
) -> "AsyncIterator[capo_codeguruprofiler.types.profile_time.ProfileTime]":
    _token = next_token
    while True:
        _response = await self.list_profile_times(
            profiling_group_name,
            start_time,
            end_time,
            period,
            config_overrides=config_overrides,
            order_by=order_by,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("profile_times",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break