Agent OBJECT

An agent

Fields

clusterQueueClusterQueue

connectedAtDateTime

The time when the agent connected to Buildkite

connectionStateString!

The connection state of the agent

createdAtDateTime

The date the agent was created

disconnectedAtDateTime

The time when the agent disconnected from Buildkite

heartbeatAtDateTime

The last time the agent performed a heartbeat operation to the Agent API

hostnameString

The hostname of the machine running the agent

idID!

ipAddressString

The IP address that the agent has connected from

isDeprecatedBoolean!

If this version of agent has been deprecated by Buildkite

isRunningJobBoolean!

Returns whether or not this agent is running a job. If isRunningJob true, but the job field is empty, the current user doesn't have access to view the job

jobJob

The currently running job

jobsJobConnection

Jobs that have been assigned to this agent

Arguments

afterString

Returns the elements in the list that come after the specified cursor.

agentQueryRules[String!]

beforeString

Returns the elements in the list that come before the specified cursor.

concurrencyJobConcurrencySearch

firstInt

Returns the first n elements from the list.

lastInt

Returns the last n elements from the list.

orderJobOrder

Order the jobs

Default value: RECENTLY_ASSIGNED

passedBoolean

Whether or not the command job passed. Passing false will return all failed jobs (including "soft failed" jobs)

priorityInt

state[JobStates!]

stepJobStepSearch

Filtering jobs based on related step information

type[JobTypes!]

lostAtDateTime

The date the agent was lost from Buildkite if it didn't cleanly disconnect

metaData[String!]

The meta data this agent was stared with

nameString!

The name of the agent

operatingSystemOperatingSystem

The operating system the agent is running on

organizationOrganization

permissionsAgentPermissions!

pidString

The process identifier (PID) of the agent process on the machine

pingedAtDateTimedeprecated

Deprecated: DEPRECATED: please use heartbeatAt

priorityInt

The priority setting for the agent

publicBoolean!

Whether this agent is visible to everyone, including people outside this organization

stopForcedAtDateTime

The time this agent was forced to stop

stopForcedByUser

The user that forced this agent to stop

stoppedAtDateTimedeprecated

Deprecated: Use either `stoppedGracefullyAt` or `stopForcedAt`

The time the agent was first asked to stop

stoppedByUserdeprecated

Deprecated: Use either `stoppedGracefullyBy` or `stopForcedBy`

The user that initially stopped this agent

stoppedGracefullyAtDateTime

The time the agent was gracefully stopped by a user

stoppedGracefullyByUser

The user that gracefully stopped this agent

userAgentString

The User-Agent of the program that is making Agent API requests to Buildkite

uuidString!

The public UUID for the agent

versionString

The version of the agent

versionHasKnownIssuesBoolean!

Whether this agent's version has known issues and should be upgraded

Interfaces