All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.monitoring.kotlin.outputs.AlertPolicyConditionConditionMatchedLog.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@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