
com.pulumi.azure.monitoring.kotlin.inputs.ScheduledQueryRulesAlertTriggerMetricTriggerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.monitoring.kotlin.inputs
import com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertTriggerMetricTriggerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 ScheduledQueryRulesAlertTriggerMetricTriggerArgs(
public val metricColumn: Output? = null,
public val metricTriggerType: Output,
public val `operator`: Output,
public val threshold: Output,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertTriggerMetricTriggerArgs =
com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertTriggerMetricTriggerArgs.builder()
.metricColumn(metricColumn?.applyValue({ args0 -> args0 }))
.metricTriggerType(metricTriggerType.applyValue({ args0 -> args0 }))
.`operator`(`operator`.applyValue({ args0 -> args0 }))
.threshold(threshold.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScheduledQueryRulesAlertTriggerMetricTriggerArgs].
*/
@PulumiTagMarker
public class ScheduledQueryRulesAlertTriggerMetricTriggerArgsBuilder internal constructor() {
private var metricColumn: Output? = null
private var metricTriggerType: Output? = null
private var `operator`: Output? = null
private var threshold: Output? = null
/**
* @param value Evaluation of metric on a particular column.
*/
@JvmName("xgpttdoouykrdcxv")
public suspend fun metricColumn(`value`: Output) {
this.metricColumn = value
}
/**
* @param value Metric Trigger Type - 'Consecutive' or 'Total'.
*/
@JvmName("xyfsjdrpxbhuogsg")
public suspend fun metricTriggerType(`value`: Output) {
this.metricTriggerType = value
}
/**
* @param value Evaluation operation for rule - 'Equal', 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'.
*/
@JvmName("wjbvcwvfwccoekpb")
public suspend fun `operator`(`value`: Output) {
this.`operator` = value
}
/**
* @param value The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
*/
@JvmName("aeabkuhwyfgoteol")
public suspend fun threshold(`value`: Output) {
this.threshold = value
}
/**
* @param value Evaluation of metric on a particular column.
*/
@JvmName("pbxwdirlviotqukb")
public suspend fun metricColumn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metricColumn = mapped
}
/**
* @param value Metric Trigger Type - 'Consecutive' or 'Total'.
*/
@JvmName("huqtbgjxgxphfuvt")
public suspend fun metricTriggerType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metricTriggerType = mapped
}
/**
* @param value Evaluation operation for rule - 'Equal', 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'.
*/
@JvmName("xtsjnpdgndyfcngg")
public suspend fun `operator`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`operator` = mapped
}
/**
* @param value The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
*/
@JvmName("khauambhuuxkuwwt")
public suspend fun threshold(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.threshold = mapped
}
internal fun build(): ScheduledQueryRulesAlertTriggerMetricTriggerArgs =
ScheduledQueryRulesAlertTriggerMetricTriggerArgs(
metricColumn = metricColumn,
metricTriggerType = metricTriggerType ?: throw PulumiNullFieldException("metricTriggerType"),
`operator` = `operator` ?: throw PulumiNullFieldException("operator"),
threshold = threshold ?: throw PulumiNullFieldException("threshold"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy