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

com.pulumi.azurenative.insights.inputs.PerfCounterDataSourceArgs Maven / Gradle / Ivy

// *** 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.insights.inputs;

import com.pulumi.azurenative.insights.enums.KnownPerfCounterDataSourceStreams;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of which performance counters will be collected and how they will be collected by this data collection rule.
 * Collected from both Windows and Linux machines where the counter is present.
 * 
 */
public final class PerfCounterDataSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final PerfCounterDataSourceArgs Empty = new PerfCounterDataSourceArgs();

    /**
     * A list of specifier names of the performance counters you want to collect.
     * Use a wildcard (*) to collect a counter for all instances.
     * To get a list of performance counters on Windows, run the command 'typeperf'.
     * 
     */
    @Import(name="counterSpecifiers")
    private @Nullable Output> counterSpecifiers;

    /**
     * @return A list of specifier names of the performance counters you want to collect.
     * Use a wildcard (*) to collect a counter for all instances.
     * To get a list of performance counters on Windows, run the command 'typeperf'.
     * 
     */
    public Optional>> counterSpecifiers() {
        return Optional.ofNullable(this.counterSpecifiers);
    }

    /**
     * A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The number of seconds between consecutive counter measurements (samples).
     * 
     */
    @Import(name="samplingFrequencyInSeconds")
    private @Nullable Output samplingFrequencyInSeconds;

    /**
     * @return The number of seconds between consecutive counter measurements (samples).
     * 
     */
    public Optional> samplingFrequencyInSeconds() {
        return Optional.ofNullable(this.samplingFrequencyInSeconds);
    }

    /**
     * List of streams that this data source will be sent to.
     * A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
     * 
     */
    @Import(name="streams")
    private @Nullable Output>> streams;

    /**
     * @return List of streams that this data source will be sent to.
     * A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
     * 
     */
    public Optional>>> streams() {
        return Optional.ofNullable(this.streams);
    }

    private PerfCounterDataSourceArgs() {}

    private PerfCounterDataSourceArgs(PerfCounterDataSourceArgs $) {
        this.counterSpecifiers = $.counterSpecifiers;
        this.name = $.name;
        this.samplingFrequencyInSeconds = $.samplingFrequencyInSeconds;
        this.streams = $.streams;
    }

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

    public static final class Builder {
        private PerfCounterDataSourceArgs $;

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

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

        /**
         * @param counterSpecifiers A list of specifier names of the performance counters you want to collect.
         * Use a wildcard (*) to collect a counter for all instances.
         * To get a list of performance counters on Windows, run the command 'typeperf'.
         * 
         * @return builder
         * 
         */
        public Builder counterSpecifiers(@Nullable Output> counterSpecifiers) {
            $.counterSpecifiers = counterSpecifiers;
            return this;
        }

        /**
         * @param counterSpecifiers A list of specifier names of the performance counters you want to collect.
         * Use a wildcard (*) to collect a counter for all instances.
         * To get a list of performance counters on Windows, run the command 'typeperf'.
         * 
         * @return builder
         * 
         */
        public Builder counterSpecifiers(List counterSpecifiers) {
            return counterSpecifiers(Output.of(counterSpecifiers));
        }

        /**
         * @param counterSpecifiers A list of specifier names of the performance counters you want to collect.
         * Use a wildcard (*) to collect a counter for all instances.
         * To get a list of performance counters on Windows, run the command 'typeperf'.
         * 
         * @return builder
         * 
         */
        public Builder counterSpecifiers(String... counterSpecifiers) {
            return counterSpecifiers(List.of(counterSpecifiers));
        }

        /**
         * @param name A friendly name for the data source.
         * This name should be unique across all data sources (regardless of type) within the data collection rule.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A friendly name for the data source.
         * This name should be unique across all data sources (regardless of type) within the data collection rule.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param samplingFrequencyInSeconds The number of seconds between consecutive counter measurements (samples).
         * 
         * @return builder
         * 
         */
        public Builder samplingFrequencyInSeconds(@Nullable Output samplingFrequencyInSeconds) {
            $.samplingFrequencyInSeconds = samplingFrequencyInSeconds;
            return this;
        }

        /**
         * @param samplingFrequencyInSeconds The number of seconds between consecutive counter measurements (samples).
         * 
         * @return builder
         * 
         */
        public Builder samplingFrequencyInSeconds(Integer samplingFrequencyInSeconds) {
            return samplingFrequencyInSeconds(Output.of(samplingFrequencyInSeconds));
        }

        /**
         * @param streams List of streams that this data source will be sent to.
         * A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
         * 
         * @return builder
         * 
         */
        public Builder streams(@Nullable Output>> streams) {
            $.streams = streams;
            return this;
        }

        /**
         * @param streams List of streams that this data source will be sent to.
         * A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
         * 
         * @return builder
         * 
         */
        public Builder streams(List> streams) {
            return streams(Output.of(streams));
        }

        /**
         * @param streams List of streams that this data source will be sent to.
         * A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
         * 
         * @return builder
         * 
         */
        public Builder streams(Either... streams) {
            return streams(List.of(streams));
        }

        public PerfCounterDataSourceArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy