com.pulumi.gcp.monitoring.kotlin.inputs.AlertPolicyConditionConditionAbsentTriggerArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.monitoring.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionAbsentTriggerArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property count The absolute number of time series
* that must fail the predicate for the
* condition to be triggered.
* @property percent The percentage of time series that
* must fail the predicate for the
* condition to be triggered.
*/
public data class AlertPolicyConditionConditionAbsentTriggerArgs(
public val count: Output? = null,
public val percent: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionAbsentTriggerArgs =
com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionAbsentTriggerArgs.builder()
.count(count?.applyValue({ args0 -> args0 }))
.percent(percent?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AlertPolicyConditionConditionAbsentTriggerArgs].
*/
@PulumiTagMarker
public class AlertPolicyConditionConditionAbsentTriggerArgsBuilder internal constructor() {
private var count: Output? = null
private var percent: Output? = null
/**
* @param value The absolute number of time series
* that must fail the predicate for the
* condition to be triggered.
*/
@JvmName("myalhqrtqhubifar")
public suspend fun count(`value`: Output) {
this.count = value
}
/**
* @param value The percentage of time series that
* must fail the predicate for the
* condition to be triggered.
*/
@JvmName("cqgfmvxnugnbhapo")
public suspend fun percent(`value`: Output) {
this.percent = value
}
/**
* @param value The absolute number of time series
* that must fail the predicate for the
* condition to be triggered.
*/
@JvmName("fmtffcakdphepvmt")
public suspend fun count(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.count = mapped
}
/**
* @param value The percentage of time series that
* must fail the predicate for the
* condition to be triggered.
*/
@JvmName("itktildymiopebte")
public suspend fun percent(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.percent = mapped
}
internal fun build(): AlertPolicyConditionConditionAbsentTriggerArgs =
AlertPolicyConditionConditionAbsentTriggerArgs(
count = count,
percent = percent,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy