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

com.pulumi.azure.monitoring.kotlin.outputs.ScheduledQueryRulesAlertTrigger.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin.outputs

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

/**
 *
 * @property metricTrigger A `metric_trigger` block as defined above. Trigger condition for metric query rule.
 * @property operator Evaluation operation for rule - 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'.
 * @property threshold Result or count threshold based on which rule should be triggered. Values must be between 0 and 10000 inclusive.
 */
public data class ScheduledQueryRulesAlertTrigger(
    public val metricTrigger: ScheduledQueryRulesAlertTriggerMetricTrigger? = null,
    public val `operator`: String,
    public val threshold: Double,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.ScheduledQueryRulesAlertTrigger):
            ScheduledQueryRulesAlertTrigger = ScheduledQueryRulesAlertTrigger(
            metricTrigger = javaType.metricTrigger().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.monitoring.kotlin.outputs.ScheduledQueryRulesAlertTriggerMetricTrigger.Companion.toKotlin(args0)
                })
            }).orElse(null),
            `operator` = javaType.`operator`(),
            threshold = javaType.threshold(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy