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

com.pulumi.azurenative.iotoperations.kotlin.inputs.OpenTelemetryExportConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.iotoperations.kotlin.inputs

import com.pulumi.azurenative.iotoperations.inputs.OpenTelemetryExportConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * OpenTelemetry Export Configuration properties
 * @property intervalSeconds How often to export the metrics to the open telemetry collector.
 * @property otlpGrpcEndpoint The open telemetry collector endpoint to export to.
 */
public data class OpenTelemetryExportConfigArgs(
    public val intervalSeconds: Output? = null,
    public val otlpGrpcEndpoint: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperations.inputs.OpenTelemetryExportConfigArgs =
        com.pulumi.azurenative.iotoperations.inputs.OpenTelemetryExportConfigArgs.builder()
            .intervalSeconds(intervalSeconds?.applyValue({ args0 -> args0 }))
            .otlpGrpcEndpoint(otlpGrpcEndpoint.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OpenTelemetryExportConfigArgs].
 */
@PulumiTagMarker
public class OpenTelemetryExportConfigArgsBuilder internal constructor() {
    private var intervalSeconds: Output? = null

    private var otlpGrpcEndpoint: Output? = null

    /**
     * @param value How often to export the metrics to the open telemetry collector.
     */
    @JvmName("nlyefxexkgltskao")
    public suspend fun intervalSeconds(`value`: Output) {
        this.intervalSeconds = value
    }

    /**
     * @param value The open telemetry collector endpoint to export to.
     */
    @JvmName("fqbjseanjbjaiist")
    public suspend fun otlpGrpcEndpoint(`value`: Output) {
        this.otlpGrpcEndpoint = value
    }

    /**
     * @param value How often to export the metrics to the open telemetry collector.
     */
    @JvmName("kdumhgmnekpsgtot")
    public suspend fun intervalSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intervalSeconds = mapped
    }

    /**
     * @param value The open telemetry collector endpoint to export to.
     */
    @JvmName("mknadwxeoiojvphq")
    public suspend fun otlpGrpcEndpoint(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.otlpGrpcEndpoint = mapped
    }

    internal fun build(): OpenTelemetryExportConfigArgs = OpenTelemetryExportConfigArgs(
        intervalSeconds = intervalSeconds,
        otlpGrpcEndpoint = otlpGrpcEndpoint ?: throw PulumiNullFieldException("otlpGrpcEndpoint"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy