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

com.pulumi.gcp.logging.kotlin.outputs.MetricBucketOptions.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.logging.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property explicitBuckets Specifies a set of buckets with arbitrary widths.
 * Structure is documented below.
 * @property exponentialBuckets Specifies an exponential sequence of buckets that have a width that is proportional to the value of
 * the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
 * Structure is documented below.
 * @property linearBuckets Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
 * Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
 * Structure is documented below.
 */
public data class MetricBucketOptions(
    public val explicitBuckets: MetricBucketOptionsExplicitBuckets? = null,
    public val exponentialBuckets: MetricBucketOptionsExponentialBuckets? = null,
    public val linearBuckets: MetricBucketOptionsLinearBuckets? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.logging.outputs.MetricBucketOptions): MetricBucketOptions = MetricBucketOptions(
            explicitBuckets = javaType.explicitBuckets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.logging.kotlin.outputs.MetricBucketOptionsExplicitBuckets.Companion.toKotlin(args0)
                })
            }).orElse(null),
            exponentialBuckets = javaType.exponentialBuckets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.logging.kotlin.outputs.MetricBucketOptionsExponentialBuckets.Companion.toKotlin(args0)
                })
            }).orElse(null),
            linearBuckets = javaType.linearBuckets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.logging.kotlin.outputs.MetricBucketOptionsLinearBuckets.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy