Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.monitoring.kotlin.inputs
import com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertV2CriteriaArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property dimensions A `dimension` block as defined below.
* @property failingPeriods A `failing_periods` block as defined below.
* @property metricMeasureColumn Specifies the column containing the metric measure number.
* > **Note** `metric_measure_column` is required if `time_aggregation_method` is `Average`, `Maximum`, `Minimum`, or `Total`. And `metric_measure_column` can not be specified if `time_aggregation_method` is `Count`.
* @property operator Specifies the criteria operator. Possible values are `Equal`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan`,and `LessThanOrEqual`.
* @property query The query to run on logs. The results returned by this query are used to populate the alert.
* @property resourceIdColumn Specifies the column containing the resource ID. The content of the column must be an uri formatted as resource ID.
* @property threshold Specifies the criteria threshold value that activates the alert.
* @property timeAggregationMethod The type of aggregation to apply to the data points in aggregation granularity. Possible values are `Average`, `Count`, `Maximum`, `Minimum`,and `Total`.
*/
public data class ScheduledQueryRulesAlertV2CriteriaArgs(
public val dimensions: Output>? = null,
public val failingPeriods: Output? = null,
public val metricMeasureColumn: Output? = null,
public val `operator`: Output,
public val query: Output,
public val resourceIdColumn: Output? = null,
public val threshold: Output,
public val timeAggregationMethod: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertV2CriteriaArgs =
com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertV2CriteriaArgs.builder()
.dimensions(
dimensions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.failingPeriods(failingPeriods?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.metricMeasureColumn(metricMeasureColumn?.applyValue({ args0 -> args0 }))
.`operator`(`operator`.applyValue({ args0 -> args0 }))
.query(query.applyValue({ args0 -> args0 }))
.resourceIdColumn(resourceIdColumn?.applyValue({ args0 -> args0 }))
.threshold(threshold.applyValue({ args0 -> args0 }))
.timeAggregationMethod(timeAggregationMethod.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScheduledQueryRulesAlertV2CriteriaArgs].
*/
@PulumiTagMarker
public class ScheduledQueryRulesAlertV2CriteriaArgsBuilder internal constructor() {
private var dimensions: Output>? = null
private var failingPeriods: Output? = null
private var metricMeasureColumn: Output? = null
private var `operator`: Output? = null
private var query: Output? = null
private var resourceIdColumn: Output? = null
private var threshold: Output? = null
private var timeAggregationMethod: Output? = null
/**
* @param value A `dimension` block as defined below.
*/
@JvmName("ymaheecovvxhoftu")
public suspend fun dimensions(`value`: Output>) {
this.dimensions = value
}
@JvmName("aduqyxmshkwsdqcc")
public suspend fun dimensions(vararg values: Output) {
this.dimensions = Output.all(values.asList())
}
/**
* @param values A `dimension` block as defined below.
*/
@JvmName("uwyxcbacqroljxjh")
public suspend fun dimensions(values: List