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

com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceSettingsInsightsConfig.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.sql.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property queryInsightsEnabled True if Query Insights feature is enabled.
 * @property queryPlansPerMinute Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
 * @property queryStringLength Maximum query length stored in bytes. Between 256 and 4500. Default to 1024. Higher query lengths are more useful for analytical queries, but they also require more memory. Changing the query length requires you to restart the instance. You can still add tags to queries that exceed the length limit.
 * @property recordApplicationTags True if Query Insights will record application tags from query when enabled.
 * @property recordClientAddress True if Query Insights will record client address when enabled.
 */
public data class DatabaseInstanceSettingsInsightsConfig(
    public val queryInsightsEnabled: Boolean? = null,
    public val queryPlansPerMinute: Int? = null,
    public val queryStringLength: Int? = null,
    public val recordApplicationTags: Boolean? = null,
    public val recordClientAddress: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.DatabaseInstanceSettingsInsightsConfig): DatabaseInstanceSettingsInsightsConfig = DatabaseInstanceSettingsInsightsConfig(
            queryInsightsEnabled = javaType.queryInsightsEnabled().map({ args0 -> args0 }).orElse(null),
            queryPlansPerMinute = javaType.queryPlansPerMinute().map({ args0 -> args0 }).orElse(null),
            queryStringLength = javaType.queryStringLength().map({ args0 -> args0 }).orElse(null),
            recordApplicationTags = javaType.recordApplicationTags().map({ args0 -> args0 }).orElse(null),
            recordClientAddress = javaType.recordClientAddress().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy