![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.monitoring.kotlin.outputs.MetricAlertCriteria.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.outputs
import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property aggregation The statistic that runs over the metric values. Possible values are `Average`, `Count`, `Minimum`, `Maximum` and `Total`.
* @property dimensions One or more `dimension` blocks as defined below.
* @property metricName One of the metric names to be monitored.
* @property metricNamespace One of the metric namespaces to be monitored.
* @property operator The criteria operator. Possible values are `Equals`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan` and `LessThanOrEqual`.
* @property skipMetricValidation Skip the metric validation to allow creating an alert rule on a custom metric that isn't yet emitted? Defaults to `false`.
* @property threshold The criteria threshold value that activates the alert.
*/
public data class MetricAlertCriteria(
public val aggregation: String,
public val dimensions: List? = null,
public val metricName: String,
public val metricNamespace: String,
public val `operator`: String,
public val skipMetricValidation: Boolean? = null,
public val threshold: Double,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.MetricAlertCriteria): MetricAlertCriteria = MetricAlertCriteria(
aggregation = javaType.aggregation(),
dimensions = javaType.dimensions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.monitoring.kotlin.outputs.MetricAlertCriteriaDimension.Companion.toKotlin(args0)
})
}),
metricName = javaType.metricName(),
metricNamespace = javaType.metricNamespace(),
`operator` = javaType.`operator`(),
skipMetricValidation = javaType.skipMetricValidation().map({ args0 -> args0 }).orElse(null),
threshold = javaType.threshold(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy