com.pulumi.azure.monitoring.kotlin.outputs.MetricAlertDynamicCriteria.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.Int
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 alertSensitivity The extent of deviation required to trigger an alert. Possible values are `Low`, `Medium` and `High`.
* @property dimensions One or more `dimension` blocks as defined below.
* @property evaluationFailureCount The number of violations to trigger an alert. Should be smaller or equal to `evaluation_total_count`. Defaults to `4`.
* @property evaluationTotalCount The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (`window_size`) and the selected number of aggregated points. Defaults to `4`.
* @property ignoreDataBefore The [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) date from which to start learning the metric historical data and calculate the dynamic thresholds.
* @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 `LessThan`, `GreaterThan` and `GreaterOrLessThan`.
* @property skipMetricValidation Skip the metric validation to allow creating an alert rule on a custom metric that isn't yet emitted?
*/
public data class MetricAlertDynamicCriteria(
public val aggregation: String,
public val alertSensitivity: String,
public val dimensions: List? = null,
public val evaluationFailureCount: Int? = null,
public val evaluationTotalCount: Int? = null,
public val ignoreDataBefore: String? = null,
public val metricName: String,
public val metricNamespace: String,
public val `operator`: String,
public val skipMetricValidation: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.monitoring.outputs.MetricAlertDynamicCriteria):
MetricAlertDynamicCriteria = MetricAlertDynamicCriteria(
aggregation = javaType.aggregation(),
alertSensitivity = javaType.alertSensitivity(),
dimensions = javaType.dimensions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.monitoring.kotlin.outputs.MetricAlertDynamicCriteriaDimension.Companion.toKotlin(args0)
})
}),
evaluationFailureCount = javaType.evaluationFailureCount().map({ args0 -> args0 }).orElse(null),
evaluationTotalCount = javaType.evaluationTotalCount().map({ args0 -> args0 }).orElse(null),
ignoreDataBefore = javaType.ignoreDataBefore().map({ args0 -> args0 }).orElse(null),
metricName = javaType.metricName(),
metricNamespace = javaType.metricNamespace(),
`operator` = javaType.`operator`(),
skipMetricValidation = javaType.skipMetricValidation().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy