![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.monitoring.kotlin.inputs.ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.monitoring.kotlin.inputs
import com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgs.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.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property minimumFailingPeriodsToTriggerAlert Specifies the number of violations to trigger an alert. Should be smaller or equal to `number_of_evaluation_periods`. Possible value is integer between 1 and 6.
* @property numberOfEvaluationPeriods Specifies the number of aggregated look-back points. The look-back time window is calculated based on the aggregation granularity `window_duration` and the selected number of aggregated points. Possible value is integer between 1 and 6.
* > **Note** The query look back which is `window_duration`*`number_of_evaluation_periods` cannot exceed 48 hours.
* > **Note** `number_of_evaluation_periods` must be `1` for queries that do not project timestamp column
*/
public data class ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgs(
public val minimumFailingPeriodsToTriggerAlert: Output,
public val numberOfEvaluationPeriods: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgs =
com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgs.builder()
.minimumFailingPeriodsToTriggerAlert(
minimumFailingPeriodsToTriggerAlert.applyValue({ args0 ->
args0
}),
)
.numberOfEvaluationPeriods(numberOfEvaluationPeriods.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgs].
*/
@PulumiTagMarker
public class ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgsBuilder internal constructor() {
private var minimumFailingPeriodsToTriggerAlert: Output? = null
private var numberOfEvaluationPeriods: Output? = null
/**
* @param value Specifies the number of violations to trigger an alert. Should be smaller or equal to `number_of_evaluation_periods`. Possible value is integer between 1 and 6.
*/
@JvmName("xotwpoxmecchwjvr")
public suspend fun minimumFailingPeriodsToTriggerAlert(`value`: Output) {
this.minimumFailingPeriodsToTriggerAlert = value
}
/**
* @param value Specifies the number of aggregated look-back points. The look-back time window is calculated based on the aggregation granularity `window_duration` and the selected number of aggregated points. Possible value is integer between 1 and 6.
* > **Note** The query look back which is `window_duration`*`number_of_evaluation_periods` cannot exceed 48 hours.
* > **Note** `number_of_evaluation_periods` must be `1` for queries that do not project timestamp column
*/
@JvmName("cduuyfosqxdtdkqp")
public suspend fun numberOfEvaluationPeriods(`value`: Output) {
this.numberOfEvaluationPeriods = value
}
/**
* @param value Specifies the number of violations to trigger an alert. Should be smaller or equal to `number_of_evaluation_periods`. Possible value is integer between 1 and 6.
*/
@JvmName("dgdjqobwfycvvtre")
public suspend fun minimumFailingPeriodsToTriggerAlert(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minimumFailingPeriodsToTriggerAlert = mapped
}
/**
* @param value Specifies the number of aggregated look-back points. The look-back time window is calculated based on the aggregation granularity `window_duration` and the selected number of aggregated points. Possible value is integer between 1 and 6.
* > **Note** The query look back which is `window_duration`*`number_of_evaluation_periods` cannot exceed 48 hours.
* > **Note** `number_of_evaluation_periods` must be `1` for queries that do not project timestamp column
*/
@JvmName("yednqsujqcrvexlj")
public suspend fun numberOfEvaluationPeriods(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.numberOfEvaluationPeriods = mapped
}
internal fun build(): ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgs =
ScheduledQueryRulesAlertV2CriteriaFailingPeriodsArgs(
minimumFailingPeriodsToTriggerAlert = minimumFailingPeriodsToTriggerAlert ?: throw
PulumiNullFieldException("minimumFailingPeriodsToTriggerAlert"),
numberOfEvaluationPeriods = numberOfEvaluationPeriods ?: throw
PulumiNullFieldException("numberOfEvaluationPeriods"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy