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

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

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

package com.pulumi.digitalocean.kotlin.outputs

import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property disabled Determines whether or not the alert is disabled (default: `false`).
 * @property operator The operator to use. This is either of `GREATER_THAN` or `LESS_THAN`.
 * @property rule The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`.
 * @property value The threshold for the type of the warning.
 * @property window The time before alerts should be triggered. This is may be one of: `FIVE_MINUTES`, `TEN_MINUTES`, `THIRTY_MINUTES`, `ONE_HOUR`.
 */
public data class GetAppSpecWorkerAlert(
    public val disabled: Boolean? = null,
    public val `operator`: String,
    public val rule: String,
    public val `value`: Double,
    public val window: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetAppSpecWorkerAlert): GetAppSpecWorkerAlert = GetAppSpecWorkerAlert(
            disabled = javaType.disabled().map({ args0 -> args0 }).orElse(null),
            `operator` = javaType.`operator`(),
            rule = javaType.rule(),
            `value` = javaType.`value`(),
            window = javaType.window(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy