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

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

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property displayName A concise name for the metric, which can be displayed in user interfaces. Use sentence case
 * without an ending period, for example "Request count". This field is optional but it is
 * recommended to be set for any metrics associated with user-visible concepts, such as Quota.
 * @property labels The set of labels that can be used to describe a specific instance of this metric type. For
 * example, the appengine.googleapis.com/http/server/response_latencies metric type has a label
 * for the HTTP response code, response_code, so you can look at latencies for successful responses
 * or just for responses that failed.
 * Structure is documented below.
 * @property metricKind Whether the metric records instantaneous values, changes to a value, etc.
 * Some combinations of metricKind and valueType might not be supported.
 * For counter metrics, set this to DELTA.
 * Possible values are: `DELTA`, `GAUGE`, `CUMULATIVE`.
 * @property unit The unit in which the metric value is reported. It is only applicable if the valueType is
 * `INT64`, `DOUBLE`, or `DISTRIBUTION`. The supported units are a subset of
 * [The Unified Code for Units of Measure](http://unitsofmeasure.org/ucum.html) standard
 * @property valueType Whether the measurement is an integer, a floating-point number, etc.
 * Some combinations of metricKind and valueType might not be supported.
 * For counter metrics, set this to INT64.
 * Possible values are: `BOOL`, `INT64`, `DOUBLE`, `STRING`, `DISTRIBUTION`, `MONEY`.
 */
public data class MetricMetricDescriptor(
    public val displayName: String? = null,
    public val labels: List? = null,
    public val metricKind: String,
    public val unit: String? = null,
    public val valueType: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.logging.outputs.MetricMetricDescriptor): MetricMetricDescriptor = MetricMetricDescriptor(
            displayName = javaType.displayName().map({ args0 -> args0 }).orElse(null),
            labels = javaType.labels().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.logging.kotlin.outputs.MetricMetricDescriptorLabel.Companion.toKotlin(args0)
                })
            }),
            metricKind = javaType.metricKind(),
            unit = javaType.unit().map({ args0 -> args0 }).orElse(null),
            valueType = javaType.valueType(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy