All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.digitalocean.kotlin.outputs.GetLoadBalancerHealthcheck.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property checkIntervalSeconds the number of seconds between between two consecutive health checks
 * @property healthyThreshold the number of times a health check must pass for a backend droplet to be marked 'healthy' and be re-added to the pool
 * @property path the path on the backend Droplets to which the Load Balancer will send a request
 * @property port the port on the backend droplets on which the health check will attempt a connection
 * @property protocol the protocol used for health checks sent to the backend droplets
 * @property responseTimeoutSeconds the number of seconds to wait for a response until marking a health check as failed
 * @property unhealthyThreshold The number of times a health check must fail for a backend droplet to be marked 'unhealthy' and be removed from the pool
 */
public data class GetLoadBalancerHealthcheck(
    public val checkIntervalSeconds: Int,
    public val healthyThreshold: Int,
    public val path: String,
    public val port: Int,
    public val protocol: String,
    public val responseTimeoutSeconds: Int,
    public val unhealthyThreshold: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetLoadBalancerHealthcheck): GetLoadBalancerHealthcheck = GetLoadBalancerHealthcheck(
            checkIntervalSeconds = javaType.checkIntervalSeconds(),
            healthyThreshold = javaType.healthyThreshold(),
            path = javaType.path(),
            port = javaType.port(),
            protocol = javaType.protocol(),
            responseTimeoutSeconds = javaType.responseTimeoutSeconds(),
            unhealthyThreshold = javaType.unhealthyThreshold(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy