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

com.pulumi.digitalocean.kotlin.outputs.AppSpecServiceHealthCheck.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 failureThreshold The number of failed health checks before considered unhealthy.
 * @property httpPath The route path used for the HTTP health check ping.
 * @property initialDelaySeconds The number of seconds to wait before beginning health checks.
 * @property periodSeconds The number of seconds to wait between health checks.
 * @property port The health check will be performed on this port instead of component's HTTP port.
 * @property successThreshold The number of successful health checks before considered healthy.
 * @property timeoutSeconds The number of seconds after which the check times out.
 */
public data class AppSpecServiceHealthCheck(
    public val failureThreshold: Int? = null,
    public val httpPath: String? = null,
    public val initialDelaySeconds: Int? = null,
    public val periodSeconds: Int? = null,
    public val port: Int? = null,
    public val successThreshold: Int? = null,
    public val timeoutSeconds: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecServiceHealthCheck): AppSpecServiceHealthCheck = AppSpecServiceHealthCheck(
            failureThreshold = javaType.failureThreshold().map({ args0 -> args0 }).orElse(null),
            httpPath = javaType.httpPath().map({ args0 -> args0 }).orElse(null),
            initialDelaySeconds = javaType.initialDelaySeconds().map({ args0 -> args0 }).orElse(null),
            periodSeconds = javaType.periodSeconds().map({ args0 -> args0 }).orElse(null),
            port = javaType.port().map({ args0 -> args0 }).orElse(null),
            successThreshold = javaType.successThreshold().map({ args0 -> args0 }).orElse(null),
            timeoutSeconds = javaType.timeoutSeconds().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy