Jobs /
Get job health checks
Lists the health checks for the given job.
Required permission
Project > Jobs > General > Read
Path parameters
projectId
string requiredID of the projectjobId
string requiredID of the job
Response body
- {object}Response object.
data
{object} requiredResult data.healthChecks
[array] requiredAn array of health checks.- {object}
protocol
string requiredThe protocol to access the health check with.one ofHTTP, CMD, TCPtype
string requiredThe type of health check.one oflivenessProbe, readinessProbepath
stringThe path of the health check endpoint.cmd
The command to run for the health check.httpPort
HTTP port number for the health check endpoint.tcpSocketPort
TCP port number for the health check endpoint.initialDelaySeconds
integer requiredInitial delay, in seconds, before the health check is first run.min1periodSeconds
integer requiredThe time between each check, in seconds.min1timeoutSeconds
integer requiredThe time to wait for a response before marking the health check as a failure.min1failureThreshold
integer requiredThe maximum number of allowed failures.min1successThreshold
The number of successes required to mark the health check as a success.
API
CLI
JS Client
GET /v1/projects/{projectId}/jobs/{jobId}/health-checks
Example response
200 OK
Details about the health checks for the job.
JSON
{
"data": {
"healthChecks": [
{
"protocol": "HTTP",
"type": "readinessProbe",
"path": "/health-check",
"httpPort": 3000,
"initialDelaySeconds": 10,
"periodSeconds": 60,
"timeoutSeconds": 1,
"failureThreshold": 3,
"successThreshold": 1
}
]
}
}