Skip to main content

class AgentRuns

Description

A lazy iterator of Run objects for a single sweep agent.

Args

  • service_api:
  • entity:
  • project:
  • sweep_id:
  • agent_key:
  • total_runs:
  • order:
  • per_page:

Properties

property cursor

The start cursor to use for the next fetched page.

property more

Whether there are more pages to be fetched.

Methods

method AgentRuns.convert_objects()

Convert the current GraphQL page into :class:Run instances for this agent.

method Paginator.next()

Return the next item from the iterator. When exhausted, raise StopIteration

method AgentRuns.update_variables()

Map paginator state to GetAgentRuns variables (after/first, not cursor/perPage).