GetHealthcheckResult

data class GetHealthcheckResult(val address: String, val checkRegions: List<String>, val consecutiveFails: Int, val consecutiveSuccesses: Int, val createdOn: String, val description: String, val failureReason: String, val healthcheckId: String? = null, val httpConfig: GetHealthcheckHttpConfig, val id: String, val interval: Int, val modifiedOn: String, val name: String, val retries: Int, val status: String, val suspended: Boolean, val tcpConfig: GetHealthcheckTcpConfig, val timeout: Int, val type: String, val zoneId: String)

A collection of values returned by getHealthcheck.

Constructors

Link copied to clipboard
constructor(address: String, checkRegions: List<String>, consecutiveFails: Int, consecutiveSuccesses: Int, createdOn: String, description: String, failureReason: String, healthcheckId: String? = null, httpConfig: GetHealthcheckHttpConfig, id: String, interval: Int, modifiedOn: String, name: String, retries: Int, status: String, suspended: Boolean, tcpConfig: GetHealthcheckTcpConfig, timeout: Int, type: String, zoneId: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The hostname or IP address of the origin server to run health checks on.

Link copied to clipboard

A list of regions from which to run health checks. Null means Cloudflare will pick a default region.

Link copied to clipboard

The number of consecutive fails required from a health check before changing the health to unhealthy.

Link copied to clipboard

The number of consecutive successes required from a health check before changing the health to healthy.

Link copied to clipboard
Link copied to clipboard

A human-readable description of the health check.

Link copied to clipboard

The current failure reason if status is unhealthy.

Link copied to clipboard
val healthcheckId: String? = null

Identifier

Link copied to clipboard

Parameters specific to an HTTP or HTTPS health check.

Link copied to clipboard
val id: String

Identifier

Link copied to clipboard

The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.

Link copied to clipboard
Link copied to clipboard

A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.

Link copied to clipboard

The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.

Link copied to clipboard

The current status of the origin server according to the health check. Available values: "unknown", "healthy", "unhealthy", "suspended".

Link copied to clipboard

If suspended, no health checks are sent to the origin.

Link copied to clipboard

Parameters specific to TCP health check.

Link copied to clipboard

The timeout (in seconds) before marking the health check as failed.

Link copied to clipboard

The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.

Link copied to clipboard

Identifier