Query
query CommandRuns {
commandRuns {
nodes {
id
displayNumber
commandId
command {
id
name
description
script
targetKind
targetAgentId
}
origin
status
}
totalCount
pageInfo {
hasNextPage
endCursor
}
}
}Response
{
"data": {
"commandRuns": {
"nodes": [
{
"id": "id",
"displayNumber": 1,
"commandId": "id",
"command": {
"id": "id",
"name": "string",
"description": "string",
"script": "string",
"targetKind": "ANY_AGENT_HOME",
"targetAgentId": "id"
},
"origin": "MANUAL",
"status": "QUEUED"
}
],
"totalCount": 1,
"pageInfo": {
"hasNextPage": true,
"endCursor": "id"
}
}
}
}Queries
commandRuns
Returns a command run page.
QUERY
commandRuns(includeArchived: Boolean, search: String, agentId: ID, worktreeId: ID, statuses: [CommandRunStatus!], first: Int, after: ID): CommandRunPage!Arguments
includeArchived
Boolean
default:false
Whether archived records should be included. Defaults to false.
search
String
Text used to filter matching records. Omit it to leave this dimension unfiltered.
agentId
ID
Identifier of the agent. Omit it to leave this dimension unfiltered.
worktreeId
ID
Identifier of the worktree. Omit it to leave this dimension unfiltered.
statuses
Statuses to include. Omit them to leave this dimension unfiltered.
first
Int
default:50
Maximum number of records to return. Defaults to 50.
after
ID
Cursor or identifier after which to return records. Omit it to leave this dimension unfiltered.
Returns
nodes
[CommandRun!]!
Nodes associated with this command run page.
totalCount
Int!
Number of totals.
pageInfo
The page info associated with this command run page.
Query
query CommandRuns {
commandRuns {
nodes {
id
displayNumber
commandId
command {
id
name
description
script
targetKind
targetAgentId
}
origin
status
}
totalCount
pageInfo {
hasNextPage
endCursor
}
}
}Response
{
"data": {
"commandRuns": {
"nodes": [
{
"id": "id",
"displayNumber": 1,
"commandId": "id",
"command": {
"id": "id",
"name": "string",
"description": "string",
"script": "string",
"targetKind": "ANY_AGENT_HOME",
"targetAgentId": "id"
},
"origin": "MANUAL",
"status": "QUEUED"
}
],
"totalCount": 1,
"pageInfo": {
"hasNextPage": true,
"endCursor": "id"
}
}
}
}