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

com.pulumi.gcp.monitoring.kotlin.inputs.AlertPolicyConditionConditionThresholdTriggerArgs.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: 8.12.0.0
Show newest version
@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.AlertPolicyConditionConditionThresholdTriggerArgs.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 AlertPolicyConditionConditionThresholdTriggerArgs(
    public val count: Output? = null,
    public val percent: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionThresholdTriggerArgs =
        com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionThresholdTriggerArgs.builder()
            .count(count?.applyValue({ args0 -> args0 }))
            .percent(percent?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlertPolicyConditionConditionThresholdTriggerArgs].
 */
@PulumiTagMarker
public class AlertPolicyConditionConditionThresholdTriggerArgsBuilder 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("mvmhbjnuccwxawjw")
    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("odeurivhercpdbvp")
    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("lpwcccphfcpkfbom")
    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("elmpiyepvoxxagrc")
    public suspend fun percent(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.percent = mapped
    }

    internal fun build(): AlertPolicyConditionConditionThresholdTriggerArgs =
        AlertPolicyConditionConditionThresholdTriggerArgs(
            count = count,
            percent = percent,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy