com.pulumi.gcp.container.kotlin.outputs.ClusterMonitoringConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.container.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property advancedDatapathObservabilityConfigs Configuration for Advanced Datapath Monitoring. Structure is documented below.
* @property enableComponents The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `SCHEDULER`, `CONTROLLER_MANAGER`, `STORAGE`, `HPA`, `POD`, `DAEMONSET`, `DEPLOYMENT`, `STATEFULSET`, `KUBELET`, `CADVISOR` and `DCGM`. In beta provider, `WORKLOADS` is supported on top of those 12 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.) `KUBELET` and `CADVISOR` are only supported in GKE 1.29.3-gke.1093000 and above.
* @property managedPrometheus Configuration for Managed Service for Prometheus. Structure is documented below.
*/
public data class ClusterMonitoringConfig(
public val advancedDatapathObservabilityConfigs: List? = null,
public val enableComponents: List? = null,
public val managedPrometheus: ClusterMonitoringConfigManagedPrometheus? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterMonitoringConfig): ClusterMonitoringConfig = ClusterMonitoringConfig(
advancedDatapathObservabilityConfigs = javaType.advancedDatapathObservabilityConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.ClusterMonitoringConfigAdvancedDatapathObservabilityConfig.Companion.toKotlin(args0)
})
}),
enableComponents = javaType.enableComponents().map({ args0 -> args0 }),
managedPrometheus = javaType.managedPrometheus().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.ClusterMonitoringConfigManagedPrometheus.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}