Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.logging.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.logging.inputs.MetricMetricDescriptorArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 MetricMetricDescriptorArgs(
public val displayName: Output? = null,
public val labels: Output>? = null,
public val metricKind: Output,
public val unit: Output? = null,
public val valueType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.logging.inputs.MetricMetricDescriptorArgs =
com.pulumi.gcp.logging.inputs.MetricMetricDescriptorArgs.builder()
.displayName(displayName?.applyValue({ args0 -> args0 }))
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.metricKind(metricKind.applyValue({ args0 -> args0 }))
.unit(unit?.applyValue({ args0 -> args0 }))
.valueType(valueType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MetricMetricDescriptorArgs].
*/
@PulumiTagMarker
public class MetricMetricDescriptorArgsBuilder internal constructor() {
private var displayName: Output? = null
private var labels: Output>? = null
private var metricKind: Output? = null
private var unit: Output? = null
private var valueType: Output? = null
/**
* @param value 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.
*/
@JvmName("jvldekdcpgjutpjl")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value 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.
*/
@JvmName("hecsljihmihenyfr")
public suspend fun labels(`value`: Output>) {
this.labels = value
}
@JvmName("heeotcbiwqyywwja")
public suspend fun labels(vararg values: Output) {
this.labels = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("xhgaiopkaxepvpol")
public suspend fun labels(values: List