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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.38.0.0
Show newest version
@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 GetAppSpecJobAlert(
    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.GetAppSpecJobAlert): GetAppSpecJobAlert = GetAppSpecJobAlert(
            disabled = javaType.disabled().map({ args0 -> args0 }).orElse(null),
            `operator` = javaType.`operator`(),
            rule = javaType.rule(),
            `value` = javaType.`value`(),
            window = javaType.window(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy