Health Check Data
get
/api/v2/instances/{id}/health_check/
Health checks are used to obtain important data about an instance. Instance fields affected by the health check are shown in this view. Fundamentally, health checks require running code on the machine in question.
- For instances with
node_typeof "control" or "hybrid", health checks are performed as part of a periodic task that runs in the background. - For instances with
node_typeof "execution", health checks are done by submitting a work unit through the receptor mesh.
If ran through the receptor mesh, the invoked command is:
ansible-runner worker --worker-info
For execution nodes, these checks are not performed on a regular basis. Health checks against functional nodes will be ran when the node is first discovered. Health checks against nodes with errors will be repeated at a reduced frequency.
Request
Supported Media Types
- application/json
Path Parameters
Query Parameters
-
page: integer
A page number within the paginated result set.
-
page_size: integer
Number of results to return per page.
-
search: string
A search term.
Response
Supported Media Types
- application/json
200 Response
Nested Schema : InstanceHealthCheck
Type:
Show Source
object-
capacity:
integer
Title:
CapacityRead Only:true -
cpu:
string(decimal)
Title:
CpuRead Only:true -
cpu_capacity:
integer
Title:
Cpu capacityRead Only:true -
errors:
string
Title:
ErrorsRead Only:trueMinimum Length:1Any error details from the last health check. -
hostname:
string
Title:
HostnameRead Only:trueMinimum Length:1 -
ip_address:
string
Title:
Ip addressRead Only:trueMinimum Length:1 -
last_health_check:
string(date-time)
Title:
Last health checkRead Only:trueLast time a health check was ran on this instance to refresh cpu, memory, and capacity. -
mem_capacity:
integer
Title:
Mem capacityRead Only:true -
memory:
integer
Title:
MemoryRead Only:trueTotal system memory of this instance in bytes. -
uuid:
string
Title:
UuidRead Only:trueMinimum Length:1 -
version:
string
Title:
VersionRead Only:trueMinimum Length:1