com.pulumi.gcp.monitoring.kotlin.outputs.AlertPolicyConditionConditionMatchedLog.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.Map
/**
*
* @property filter A logs-based filter.
* @property labelExtractors A map from a label key to an extractor expression, which is used to
* extract the value for this label key. Each entry in this map is
* a specification for how data should be extracted from log entries that
* match filter. Each combination of extracted values is treated as
* a separate rule for the purposes of triggering notifications.
* Label keys and corresponding values can be used in notifications
* generated by this condition.
*/
public data class AlertPolicyConditionConditionMatchedLog(
public val filter: String,
public val labelExtractors: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.AlertPolicyConditionConditionMatchedLog): AlertPolicyConditionConditionMatchedLog = AlertPolicyConditionConditionMatchedLog(
filter = javaType.filter(),
labelExtractors = javaType.labelExtractors().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy