com.pulumi.gcp.monitoring.kotlin.outputs.AlertPolicyConditionConditionAbsent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.monitoring.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property aggregations Specifies the alignment of data points in
* individual time series as well as how to
* combine the retrieved time series together
* (such as when aggregating multiple streams
* on each resource to a single stream for each
* resource or when aggregating streams across
* all members of a group of resources).
* Multiple aggregations are applied in the
* order specified.
* Structure is documented below.
* @property duration The amount of time that a time series must
* fail to report new data to be considered
* failing. Currently, only values that are a
* multiple of a minute--e.g. 60s, 120s, or 300s
* --are supported.
* @property filter A filter that identifies which time series
* should be compared with the threshold.The
* filter is similar to the one that is
* specified in the
* MetricService.ListTimeSeries request (that
* call is useful to verify the time series
* that will be retrieved / processed) and must
* specify the metric type and optionally may
* contain restrictions on resource type,
* resource labels, and metric labels. This
* field may not exceed 2048 Unicode characters
* in length.
* @property trigger The number/percent of time series for which
* the comparison must hold in order for the
* condition to trigger. If unspecified, then
* the condition will trigger if the comparison
* is true for any of the time series that have
* been identified by filter and aggregations.
* Structure is documented below.
*/
public data class AlertPolicyConditionConditionAbsent(
public val aggregations: List? = null,
public val duration: String,
public val filter: String? = null,
public val trigger: AlertPolicyConditionConditionAbsentTrigger? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.AlertPolicyConditionConditionAbsent): AlertPolicyConditionConditionAbsent = AlertPolicyConditionConditionAbsent(
aggregations = javaType.aggregations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.monitoring.kotlin.outputs.AlertPolicyConditionConditionAbsentAggregation.Companion.toKotlin(args0)
})
}),
duration = javaType.duration(),
filter = javaType.filter().map({ args0 -> args0 }).orElse(null),
trigger = javaType.trigger().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.monitoring.kotlin.outputs.AlertPolicyConditionConditionAbsentTrigger.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy