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

com.pulumi.azurenative.iotoperationsmq.inputs.BrokerDiagnosticsArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.iotoperationsmq.inputs;

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


/**
 * Diagnostics setting specific to Broker
 * 
 */
public final class BrokerDiagnosticsArgs extends com.pulumi.resources.ResourceArgs {

    public static final BrokerDiagnosticsArgs Empty = new BrokerDiagnosticsArgs();

    /**
     * Diagnostic Service endpoint
     * 
     */
    @Import(name="diagnosticServiceEndpoint")
    private @Nullable Output diagnosticServiceEndpoint;

    /**
     * @return Diagnostic Service endpoint
     * 
     */
    public Optional> diagnosticServiceEndpoint() {
        return Optional.ofNullable(this.diagnosticServiceEndpoint);
    }

    /**
     * Knob to enable/disable metrics. Default = true
     * 
     */
    @Import(name="enableMetrics")
    private @Nullable Output enableMetrics;

    /**
     * @return Knob to enable/disable metrics. Default = true
     * 
     */
    public Optional> enableMetrics() {
        return Optional.ofNullable(this.enableMetrics);
    }

    /**
     * Enable self check on Broker via Probe.
     * 
     */
    @Import(name="enableSelfCheck")
    private @Nullable Output enableSelfCheck;

    /**
     * @return Enable self check on Broker via Probe.
     * 
     */
    public Optional> enableSelfCheck() {
        return Optional.ofNullable(this.enableSelfCheck);
    }

    /**
     * Enable self tracing on the Broker so that every selfCheckFrequencySeconds a random message is traced even if it didn't have trace context.
     * 
     */
    @Import(name="enableSelfTracing")
    private @Nullable Output enableSelfTracing;

    /**
     * @return Enable self tracing on the Broker so that every selfCheckFrequencySeconds a random message is traced even if it didn't have trace context.
     * 
     */
    public Optional> enableSelfTracing() {
        return Optional.ofNullable(this.enableSelfTracing);
    }

    /**
     * Knob to enable/disable entire tracing infrastructure.
     * 
     */
    @Import(name="enableTracing")
    private @Nullable Output enableTracing;

    /**
     * @return Knob to enable/disable entire tracing infrastructure.
     * 
     */
    public Optional> enableTracing() {
        return Optional.ofNullable(this.enableTracing);
    }

    /**
     * Format for the logs generated.
     * 
     */
    @Import(name="logFormat")
    private @Nullable Output logFormat;

    /**
     * @return Format for the logs generated.
     * 
     */
    public Optional> logFormat() {
        return Optional.ofNullable(this.logFormat);
    }

    /**
     * Log level for the Broker.
     * 
     */
    @Import(name="logLevel")
    private @Nullable Output logLevel;

    /**
     * @return Log level for the Broker.
     * 
     */
    public Optional> logLevel() {
        return Optional.ofNullable(this.logLevel);
    }

    /**
     * Maximum time for the CellMap to live.
     * 
     */
    @Import(name="maxCellMapLifetime")
    private @Nullable Output maxCellMapLifetime;

    /**
     * @return Maximum time for the CellMap to live.
     * 
     */
    public Optional> maxCellMapLifetime() {
        return Optional.ofNullable(this.maxCellMapLifetime);
    }

    /**
     * Metric update frequency in seconds.
     * 
     */
    @Import(name="metricUpdateFrequencySeconds")
    private @Nullable Output metricUpdateFrequencySeconds;

    /**
     * @return Metric update frequency in seconds.
     * 
     */
    public Optional> metricUpdateFrequencySeconds() {
        return Optional.ofNullable(this.metricUpdateFrequencySeconds);
    }

    /**
     * Probe Image to run.
     * 
     */
    @Import(name="probeImage")
    private @Nullable Output probeImage;

    /**
     * @return Probe Image to run.
     * 
     */
    public Optional> probeImage() {
        return Optional.ofNullable(this.probeImage);
    }

    /**
     * Frequency for the self check to run.
     * 
     */
    @Import(name="selfCheckFrequencySeconds")
    private @Nullable Output selfCheckFrequencySeconds;

    /**
     * @return Frequency for the self check to run.
     * 
     */
    public Optional> selfCheckFrequencySeconds() {
        return Optional.ofNullable(this.selfCheckFrequencySeconds);
    }

    /**
     * Time out period of the self check.
     * 
     */
    @Import(name="selfCheckTimeoutSeconds")
    private @Nullable Output selfCheckTimeoutSeconds;

    /**
     * @return Time out period of the self check.
     * 
     */
    public Optional> selfCheckTimeoutSeconds() {
        return Optional.ofNullable(this.selfCheckTimeoutSeconds);
    }

    /**
     * The frequency at which selfTrace should run.
     * 
     */
    @Import(name="selfTraceFrequencySeconds")
    private @Nullable Output selfTraceFrequencySeconds;

    /**
     * @return The frequency at which selfTrace should run.
     * 
     */
    public Optional> selfTraceFrequencySeconds() {
        return Optional.ofNullable(this.selfTraceFrequencySeconds);
    }

    /**
     * The number of the spans generated by the Tracing.
     * 
     */
    @Import(name="spanChannelCapacity")
    private @Nullable Output spanChannelCapacity;

    /**
     * @return The number of the spans generated by the Tracing.
     * 
     */
    public Optional> spanChannelCapacity() {
        return Optional.ofNullable(this.spanChannelCapacity);
    }

    private BrokerDiagnosticsArgs() {}

    private BrokerDiagnosticsArgs(BrokerDiagnosticsArgs $) {
        this.diagnosticServiceEndpoint = $.diagnosticServiceEndpoint;
        this.enableMetrics = $.enableMetrics;
        this.enableSelfCheck = $.enableSelfCheck;
        this.enableSelfTracing = $.enableSelfTracing;
        this.enableTracing = $.enableTracing;
        this.logFormat = $.logFormat;
        this.logLevel = $.logLevel;
        this.maxCellMapLifetime = $.maxCellMapLifetime;
        this.metricUpdateFrequencySeconds = $.metricUpdateFrequencySeconds;
        this.probeImage = $.probeImage;
        this.selfCheckFrequencySeconds = $.selfCheckFrequencySeconds;
        this.selfCheckTimeoutSeconds = $.selfCheckTimeoutSeconds;
        this.selfTraceFrequencySeconds = $.selfTraceFrequencySeconds;
        this.spanChannelCapacity = $.spanChannelCapacity;
    }

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

    public static final class Builder {
        private BrokerDiagnosticsArgs $;

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

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

        /**
         * @param diagnosticServiceEndpoint Diagnostic Service endpoint
         * 
         * @return builder
         * 
         */
        public Builder diagnosticServiceEndpoint(@Nullable Output diagnosticServiceEndpoint) {
            $.diagnosticServiceEndpoint = diagnosticServiceEndpoint;
            return this;
        }

        /**
         * @param diagnosticServiceEndpoint Diagnostic Service endpoint
         * 
         * @return builder
         * 
         */
        public Builder diagnosticServiceEndpoint(String diagnosticServiceEndpoint) {
            return diagnosticServiceEndpoint(Output.of(diagnosticServiceEndpoint));
        }

        /**
         * @param enableMetrics Knob to enable/disable metrics. Default = true
         * 
         * @return builder
         * 
         */
        public Builder enableMetrics(@Nullable Output enableMetrics) {
            $.enableMetrics = enableMetrics;
            return this;
        }

        /**
         * @param enableMetrics Knob to enable/disable metrics. Default = true
         * 
         * @return builder
         * 
         */
        public Builder enableMetrics(Boolean enableMetrics) {
            return enableMetrics(Output.of(enableMetrics));
        }

        /**
         * @param enableSelfCheck Enable self check on Broker via Probe.
         * 
         * @return builder
         * 
         */
        public Builder enableSelfCheck(@Nullable Output enableSelfCheck) {
            $.enableSelfCheck = enableSelfCheck;
            return this;
        }

        /**
         * @param enableSelfCheck Enable self check on Broker via Probe.
         * 
         * @return builder
         * 
         */
        public Builder enableSelfCheck(Boolean enableSelfCheck) {
            return enableSelfCheck(Output.of(enableSelfCheck));
        }

        /**
         * @param enableSelfTracing Enable self tracing on the Broker so that every selfCheckFrequencySeconds a random message is traced even if it didn't have trace context.
         * 
         * @return builder
         * 
         */
        public Builder enableSelfTracing(@Nullable Output enableSelfTracing) {
            $.enableSelfTracing = enableSelfTracing;
            return this;
        }

        /**
         * @param enableSelfTracing Enable self tracing on the Broker so that every selfCheckFrequencySeconds a random message is traced even if it didn't have trace context.
         * 
         * @return builder
         * 
         */
        public Builder enableSelfTracing(Boolean enableSelfTracing) {
            return enableSelfTracing(Output.of(enableSelfTracing));
        }

        /**
         * @param enableTracing Knob to enable/disable entire tracing infrastructure.
         * 
         * @return builder
         * 
         */
        public Builder enableTracing(@Nullable Output enableTracing) {
            $.enableTracing = enableTracing;
            return this;
        }

        /**
         * @param enableTracing Knob to enable/disable entire tracing infrastructure.
         * 
         * @return builder
         * 
         */
        public Builder enableTracing(Boolean enableTracing) {
            return enableTracing(Output.of(enableTracing));
        }

        /**
         * @param logFormat Format for the logs generated.
         * 
         * @return builder
         * 
         */
        public Builder logFormat(@Nullable Output logFormat) {
            $.logFormat = logFormat;
            return this;
        }

        /**
         * @param logFormat Format for the logs generated.
         * 
         * @return builder
         * 
         */
        public Builder logFormat(String logFormat) {
            return logFormat(Output.of(logFormat));
        }

        /**
         * @param logLevel Log level for the Broker.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(@Nullable Output logLevel) {
            $.logLevel = logLevel;
            return this;
        }

        /**
         * @param logLevel Log level for the Broker.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(String logLevel) {
            return logLevel(Output.of(logLevel));
        }

        /**
         * @param maxCellMapLifetime Maximum time for the CellMap to live.
         * 
         * @return builder
         * 
         */
        public Builder maxCellMapLifetime(@Nullable Output maxCellMapLifetime) {
            $.maxCellMapLifetime = maxCellMapLifetime;
            return this;
        }

        /**
         * @param maxCellMapLifetime Maximum time for the CellMap to live.
         * 
         * @return builder
         * 
         */
        public Builder maxCellMapLifetime(Double maxCellMapLifetime) {
            return maxCellMapLifetime(Output.of(maxCellMapLifetime));
        }

        /**
         * @param metricUpdateFrequencySeconds Metric update frequency in seconds.
         * 
         * @return builder
         * 
         */
        public Builder metricUpdateFrequencySeconds(@Nullable Output metricUpdateFrequencySeconds) {
            $.metricUpdateFrequencySeconds = metricUpdateFrequencySeconds;
            return this;
        }

        /**
         * @param metricUpdateFrequencySeconds Metric update frequency in seconds.
         * 
         * @return builder
         * 
         */
        public Builder metricUpdateFrequencySeconds(Double metricUpdateFrequencySeconds) {
            return metricUpdateFrequencySeconds(Output.of(metricUpdateFrequencySeconds));
        }

        /**
         * @param probeImage Probe Image to run.
         * 
         * @return builder
         * 
         */
        public Builder probeImage(@Nullable Output probeImage) {
            $.probeImage = probeImage;
            return this;
        }

        /**
         * @param probeImage Probe Image to run.
         * 
         * @return builder
         * 
         */
        public Builder probeImage(String probeImage) {
            return probeImage(Output.of(probeImage));
        }

        /**
         * @param selfCheckFrequencySeconds Frequency for the self check to run.
         * 
         * @return builder
         * 
         */
        public Builder selfCheckFrequencySeconds(@Nullable Output selfCheckFrequencySeconds) {
            $.selfCheckFrequencySeconds = selfCheckFrequencySeconds;
            return this;
        }

        /**
         * @param selfCheckFrequencySeconds Frequency for the self check to run.
         * 
         * @return builder
         * 
         */
        public Builder selfCheckFrequencySeconds(Double selfCheckFrequencySeconds) {
            return selfCheckFrequencySeconds(Output.of(selfCheckFrequencySeconds));
        }

        /**
         * @param selfCheckTimeoutSeconds Time out period of the self check.
         * 
         * @return builder
         * 
         */
        public Builder selfCheckTimeoutSeconds(@Nullable Output selfCheckTimeoutSeconds) {
            $.selfCheckTimeoutSeconds = selfCheckTimeoutSeconds;
            return this;
        }

        /**
         * @param selfCheckTimeoutSeconds Time out period of the self check.
         * 
         * @return builder
         * 
         */
        public Builder selfCheckTimeoutSeconds(Double selfCheckTimeoutSeconds) {
            return selfCheckTimeoutSeconds(Output.of(selfCheckTimeoutSeconds));
        }

        /**
         * @param selfTraceFrequencySeconds The frequency at which selfTrace should run.
         * 
         * @return builder
         * 
         */
        public Builder selfTraceFrequencySeconds(@Nullable Output selfTraceFrequencySeconds) {
            $.selfTraceFrequencySeconds = selfTraceFrequencySeconds;
            return this;
        }

        /**
         * @param selfTraceFrequencySeconds The frequency at which selfTrace should run.
         * 
         * @return builder
         * 
         */
        public Builder selfTraceFrequencySeconds(Double selfTraceFrequencySeconds) {
            return selfTraceFrequencySeconds(Output.of(selfTraceFrequencySeconds));
        }

        /**
         * @param spanChannelCapacity The number of the spans generated by the Tracing.
         * 
         * @return builder
         * 
         */
        public Builder spanChannelCapacity(@Nullable Output spanChannelCapacity) {
            $.spanChannelCapacity = spanChannelCapacity;
            return this;
        }

        /**
         * @param spanChannelCapacity The number of the spans generated by the Tracing.
         * 
         * @return builder
         * 
         */
        public Builder spanChannelCapacity(Double spanChannelCapacity) {
            return spanChannelCapacity(Output.of(spanChannelCapacity));
        }

        public BrokerDiagnosticsArgs build() {
            $.enableMetrics = Codegen.booleanProp("enableMetrics").output().arg($.enableMetrics).def(true).getNullable();
            $.enableSelfCheck = Codegen.booleanProp("enableSelfCheck").output().arg($.enableSelfCheck).def(true).getNullable();
            $.enableSelfTracing = Codegen.booleanProp("enableSelfTracing").output().arg($.enableSelfTracing).def(true).getNullable();
            $.enableTracing = Codegen.booleanProp("enableTracing").output().arg($.enableTracing).def(true).getNullable();
            $.logFormat = Codegen.stringProp("logFormat").output().arg($.logFormat).def("text").getNullable();
            $.logLevel = Codegen.stringProp("logLevel").output().arg($.logLevel).def("info,hyper=off,kube_client=off,tower=off,conhash=off,h2=off").getNullable();
            $.maxCellMapLifetime = Codegen.doubleProp("maxCellMapLifetime").output().arg($.maxCellMapLifetime).def(6e+01).getNullable();
            $.metricUpdateFrequencySeconds = Codegen.doubleProp("metricUpdateFrequencySeconds").output().arg($.metricUpdateFrequencySeconds).def(3e+01).getNullable();
            $.probeImage = Codegen.stringProp("probeImage").output().arg($.probeImage).def("sample.azurecr.io/diagnostics-probe:0.5.0").getNullable();
            $.selfCheckFrequencySeconds = Codegen.doubleProp("selfCheckFrequencySeconds").output().arg($.selfCheckFrequencySeconds).def(3e+01).getNullable();
            $.selfCheckTimeoutSeconds = Codegen.doubleProp("selfCheckTimeoutSeconds").output().arg($.selfCheckTimeoutSeconds).def(1.5e+01).getNullable();
            $.selfTraceFrequencySeconds = Codegen.doubleProp("selfTraceFrequencySeconds").output().arg($.selfTraceFrequencySeconds).def(3e+01).getNullable();
            $.spanChannelCapacity = Codegen.doubleProp("spanChannelCapacity").output().arg($.spanChannelCapacity).def(1e+03).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy