Query
query AgentDiskSpace($agentId: ID!) {
agentDiskSpace(agentId: $agentId) {
agent {
id
name
hostname
version
osVersion
architecture
}
enabled
status
pressureMode
manualPressureMode
automaticPressureMode
}
}Variables
{
"agentId": "id"
}Response
{
"data": {
"agentDiskSpace": {
"agent": {
"id": "id",
"name": "string",
"hostname": "string",
"version": "string",
"osVersion": "string",
"architecture": "string"
},
"enabled": true,
"status": "DISABLED",
"pressureMode": "NORMAL",
"manualPressureMode": true,
"automaticPressureMode": true
}
}
}Queries
agentDiskSpace
Returns an agent disk space.
QUERY
agentDiskSpace(agentId: ID!): AgentDiskSpace!Arguments
agentId
ID!
required
Identifier of the agent.
Returns
agent
The agent associated with this agent disk space.
enabled
Boolean!
Whether this agent disk space is enabled.
status
Current status of this agent disk space.
pressureMode
The pressure mode associated with this agent disk space.
manualPressureMode
Boolean!
Whether the manual pressure mode condition is true for this agent disk space.
automaticPressureMode
Boolean!
Whether the automatic pressure mode condition is true for this agent disk space.
lastReportedAt
String
ISO 8601 timestamp when this agent disk space last reported. May be null when unavailable or not applicable.
lastError
String
The last error associated with this agent disk space. May be null when unavailable or not applicable.
warnings
[String!]!
Warnings associated with this agent disk space.
volumes
[DiskSpaceVolume!]!
Volumes associated with this agent disk space.
Query
query AgentDiskSpace($agentId: ID!) {
agentDiskSpace(agentId: $agentId) {
agent {
id
name
hostname
version
osVersion
architecture
}
enabled
status
pressureMode
manualPressureMode
automaticPressureMode
}
}Variables
{
"agentId": "id"
}Response
{
"data": {
"agentDiskSpace": {
"agent": {
"id": "id",
"name": "string",
"hostname": "string",
"version": "string",
"osVersion": "string",
"architecture": "string"
},
"enabled": true,
"status": "DISABLED",
"pressureMode": "NORMAL",
"manualPressureMode": true,
"automaticPressureMode": true
}
}
}