Skip to content

iter_list_journal_records

iter_list_journal_records(
    agent_space_id: AgentSpaceIdentifier,
    execution_id: ResourceId,
    *,
    config_overrides: Optional[DevOpsAgentClientConfig] = None,
    limit: Optional[int] = None,
    next_token: Optional[NextToken] = None,
    record_type: Optional[str] = None,
    order: Optional[OrderType] = None,
) -> Iterator[JournalRecord]
Source code in docs_src/capo_devops_agent/_services/dev_ops_agent.py
def iter_list_journal_records(
    self,
    agent_space_id: "capo_devops_agent.types.agent_space_identifier.AgentSpaceIdentifier",
    execution_id: "capo_devops_agent.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[DevOpsAgentClientConfig] = None,
    limit: Optional[int] = None,
    next_token: Optional["capo_devops_agent.types.next_token.NextToken"] = None,
    record_type: Optional[str] = None,
    order: Optional["capo_devops_agent.types.order_type.OrderType"] = None,
) -> "Iterator[capo_devops_agent.types.journal_record.JournalRecord]":
    _token = next_token
    while True:
        _response = self.list_journal_records(
            agent_space_id,
            execution_id,
            config_overrides=config_overrides,
            limit=limit,
            next_token=_token,
            record_type=record_type,
            order=order,
        )
        _page = _resolve_path(_response, ("records",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break