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

com.pulumi.azurenative.iotoperations.inputs.OpenTelemetryLogExportConfigArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.iotoperations.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * OpenTelemetry Log Export Configuration properties
 * 
 */
public final class OpenTelemetryLogExportConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final OpenTelemetryLogExportConfigArgs Empty = new OpenTelemetryLogExportConfigArgs();

    /**
     * How often to export the metrics to the open telemetry collector.
     * 
     */
    @Import(name="intervalSeconds")
    private @Nullable Output intervalSeconds;

    /**
     * @return How often to export the metrics to the open telemetry collector.
     * 
     */
    public Optional> intervalSeconds() {
        return Optional.ofNullable(this.intervalSeconds);
    }

    /**
     * The log level. Examples - 'debug', 'info', 'warn', 'error', 'trace'.
     * 
     */
    @Import(name="level")
    private @Nullable Output level;

    /**
     * @return The log level. Examples - 'debug', 'info', 'warn', 'error', 'trace'.
     * 
     */
    public Optional> level() {
        return Optional.ofNullable(this.level);
    }

    /**
     * The open telemetry collector endpoint to export to.
     * 
     */
    @Import(name="otlpGrpcEndpoint", required=true)
    private Output otlpGrpcEndpoint;

    /**
     * @return The open telemetry collector endpoint to export to.
     * 
     */
    public Output otlpGrpcEndpoint() {
        return this.otlpGrpcEndpoint;
    }

    private OpenTelemetryLogExportConfigArgs() {}

    private OpenTelemetryLogExportConfigArgs(OpenTelemetryLogExportConfigArgs $) {
        this.intervalSeconds = $.intervalSeconds;
        this.level = $.level;
        this.otlpGrpcEndpoint = $.otlpGrpcEndpoint;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(OpenTelemetryLogExportConfigArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private OpenTelemetryLogExportConfigArgs $;

        public Builder() {
            $ = new OpenTelemetryLogExportConfigArgs();
        }

        public Builder(OpenTelemetryLogExportConfigArgs defaults) {
            $ = new OpenTelemetryLogExportConfigArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param intervalSeconds How often to export the metrics to the open telemetry collector.
         * 
         * @return builder
         * 
         */
        public Builder intervalSeconds(@Nullable Output intervalSeconds) {
            $.intervalSeconds = intervalSeconds;
            return this;
        }

        /**
         * @param intervalSeconds How often to export the metrics to the open telemetry collector.
         * 
         * @return builder
         * 
         */
        public Builder intervalSeconds(Integer intervalSeconds) {
            return intervalSeconds(Output.of(intervalSeconds));
        }

        /**
         * @param level The log level. Examples - 'debug', 'info', 'warn', 'error', 'trace'.
         * 
         * @return builder
         * 
         */
        public Builder level(@Nullable Output level) {
            $.level = level;
            return this;
        }

        /**
         * @param level The log level. Examples - 'debug', 'info', 'warn', 'error', 'trace'.
         * 
         * @return builder
         * 
         */
        public Builder level(String level) {
            return level(Output.of(level));
        }

        /**
         * @param otlpGrpcEndpoint The open telemetry collector endpoint to export to.
         * 
         * @return builder
         * 
         */
        public Builder otlpGrpcEndpoint(Output otlpGrpcEndpoint) {
            $.otlpGrpcEndpoint = otlpGrpcEndpoint;
            return this;
        }

        /**
         * @param otlpGrpcEndpoint The open telemetry collector endpoint to export to.
         * 
         * @return builder
         * 
         */
        public Builder otlpGrpcEndpoint(String otlpGrpcEndpoint) {
            return otlpGrpcEndpoint(Output.of(otlpGrpcEndpoint));
        }

        public OpenTelemetryLogExportConfigArgs build() {
            $.intervalSeconds = Codegen.integerProp("intervalSeconds").output().arg($.intervalSeconds).def(30).getNullable();
            $.level = Codegen.stringProp("level").output().arg($.level).def("error").getNullable();
            if ($.otlpGrpcEndpoint == null) {
                throw new MissingRequiredPropertyException("OpenTelemetryLogExportConfigArgs", "otlpGrpcEndpoint");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy