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

com.pulumi.gcp.alloydb.kotlin.inputs.InstanceObservabilityConfigArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.alloydb.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.alloydb.inputs.InstanceObservabilityConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Observability feature status for an instance.
 * @property maxQueryStringLength Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
 * @property preserveComments Preserve comments in the query string.
 * @property queryPlansPerMinute Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
 * @property recordApplicationTags Record application tags for an instance. This flag is turned "on" by default.
 * @property trackActiveQueries Track actively running queries. If not set, default value is "off".
 * @property trackWaitEventTypes Record wait event types during query execution for an instance.
 * @property trackWaitEvents Record wait events during query execution for an instance.
 */
public data class InstanceObservabilityConfigArgs(
    public val enabled: Output? = null,
    public val maxQueryStringLength: Output? = null,
    public val preserveComments: Output? = null,
    public val queryPlansPerMinute: Output? = null,
    public val recordApplicationTags: Output? = null,
    public val trackActiveQueries: Output? = null,
    public val trackWaitEventTypes: Output? = null,
    public val trackWaitEvents: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.alloydb.inputs.InstanceObservabilityConfigArgs =
        com.pulumi.gcp.alloydb.inputs.InstanceObservabilityConfigArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .maxQueryStringLength(maxQueryStringLength?.applyValue({ args0 -> args0 }))
            .preserveComments(preserveComments?.applyValue({ args0 -> args0 }))
            .queryPlansPerMinute(queryPlansPerMinute?.applyValue({ args0 -> args0 }))
            .recordApplicationTags(recordApplicationTags?.applyValue({ args0 -> args0 }))
            .trackActiveQueries(trackActiveQueries?.applyValue({ args0 -> args0 }))
            .trackWaitEventTypes(trackWaitEventTypes?.applyValue({ args0 -> args0 }))
            .trackWaitEvents(trackWaitEvents?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceObservabilityConfigArgs].
 */
@PulumiTagMarker
public class InstanceObservabilityConfigArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var maxQueryStringLength: Output? = null

    private var preserveComments: Output? = null

    private var queryPlansPerMinute: Output? = null

    private var recordApplicationTags: Output? = null

    private var trackActiveQueries: Output? = null

    private var trackWaitEventTypes: Output? = null

    private var trackWaitEvents: Output? = null

    /**
     * @param value Observability feature status for an instance.
     */
    @JvmName("cegtjxhtanlemtra")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
     */
    @JvmName("hfwpsleahkbdafcg")
    public suspend fun maxQueryStringLength(`value`: Output) {
        this.maxQueryStringLength = value
    }

    /**
     * @param value Preserve comments in the query string.
     */
    @JvmName("xrdatmbiwtxacgdu")
    public suspend fun preserveComments(`value`: Output) {
        this.preserveComments = value
    }

    /**
     * @param value Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
     */
    @JvmName("pwailaroklfufqnm")
    public suspend fun queryPlansPerMinute(`value`: Output) {
        this.queryPlansPerMinute = value
    }

    /**
     * @param value Record application tags for an instance. This flag is turned "on" by default.
     */
    @JvmName("piiqrgurjprtmhoy")
    public suspend fun recordApplicationTags(`value`: Output) {
        this.recordApplicationTags = value
    }

    /**
     * @param value Track actively running queries. If not set, default value is "off".
     */
    @JvmName("blevuehrclcegwfe")
    public suspend fun trackActiveQueries(`value`: Output) {
        this.trackActiveQueries = value
    }

    /**
     * @param value Record wait event types during query execution for an instance.
     */
    @JvmName("rxytubjtwdhfguts")
    public suspend fun trackWaitEventTypes(`value`: Output) {
        this.trackWaitEventTypes = value
    }

    /**
     * @param value Record wait events during query execution for an instance.
     */
    @JvmName("harxidnmhgjrsyjb")
    public suspend fun trackWaitEvents(`value`: Output) {
        this.trackWaitEvents = value
    }

    /**
     * @param value Observability feature status for an instance.
     */
    @JvmName("jeticaccgabbspxs")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Query string length. The default value is 10240. Any integer between 1024 and 100000 is considered valid.
     */
    @JvmName("blcrnjgxlguqbgiv")
    public suspend fun maxQueryStringLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxQueryStringLength = mapped
    }

    /**
     * @param value Preserve comments in the query string.
     */
    @JvmName("iaxgayndrrhkgbnb")
    public suspend fun preserveComments(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preserveComments = mapped
    }

    /**
     * @param value Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 200 is considered valid.
     */
    @JvmName("stcoisikrryghbrm")
    public suspend fun queryPlansPerMinute(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryPlansPerMinute = mapped
    }

    /**
     * @param value Record application tags for an instance. This flag is turned "on" by default.
     */
    @JvmName("ovwjptpywljburly")
    public suspend fun recordApplicationTags(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordApplicationTags = mapped
    }

    /**
     * @param value Track actively running queries. If not set, default value is "off".
     */
    @JvmName("povaehvfcqejnfxd")
    public suspend fun trackActiveQueries(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trackActiveQueries = mapped
    }

    /**
     * @param value Record wait event types during query execution for an instance.
     */
    @JvmName("ptjmcbyemmagcgyb")
    public suspend fun trackWaitEventTypes(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trackWaitEventTypes = mapped
    }

    /**
     * @param value Record wait events during query execution for an instance.
     */
    @JvmName("vnwuvalwxlcqnghu")
    public suspend fun trackWaitEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trackWaitEvents = mapped
    }

    internal fun build(): InstanceObservabilityConfigArgs = InstanceObservabilityConfigArgs(
        enabled = enabled,
        maxQueryStringLength = maxQueryStringLength,
        preserveComments = preserveComments,
        queryPlansPerMinute = queryPlansPerMinute,
        recordApplicationTags = recordApplicationTags,
        trackActiveQueries = trackActiveQueries,
        trackWaitEventTypes = trackWaitEventTypes,
        trackWaitEvents = trackWaitEvents,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy