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

com.pulumi.azure.monitoring.kotlin.outputs.ScheduledQueryRulesAlertTriggerMetricTrigger.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.15.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 metricColumn Evaluation of metric on a particular column.
 * @property metricTriggerType Metric Trigger Type - 'Consecutive' or 'Total'.
 * @property operator Evaluation operation for rule - 'Equal', 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'.
 * @property threshold The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
 */
public data class ScheduledQueryRulesAlertTriggerMetricTrigger(
    public val metricColumn: String? = null,
    public val metricTriggerType: String,
    public val `operator`: String,
    public val threshold: Double,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.ScheduledQueryRulesAlertTriggerMetricTrigger): ScheduledQueryRulesAlertTriggerMetricTrigger = ScheduledQueryRulesAlertTriggerMetricTrigger(
            metricColumn = javaType.metricColumn().map({ args0 -> args0 }).orElse(null),
            metricTriggerType = javaType.metricTriggerType(),
            `operator` = javaType.`operator`(),
            threshold = javaType.threshold(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy