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

com.pulumi.azurenative.insights.inputs.PrometheusForwarderDataSourceArgs 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.insights.inputs;

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


/**
 * Definition of Prometheus metrics forwarding configuration.
 * 
 */
public final class PrometheusForwarderDataSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final PrometheusForwarderDataSourceArgs Empty = new PrometheusForwarderDataSourceArgs();

    /**
     * The list of label inclusion filters in the form of label "name-value" pairs.
     * Currently only one label is supported: 'microsoft_metrics_include_label'.
     * Label values are matched case-insensitively.
     * 
     */
    @Import(name="labelIncludeFilter")
    private @Nullable Output> labelIncludeFilter;

    /**
     * @return The list of label inclusion filters in the form of label "name-value" pairs.
     * Currently only one label is supported: 'microsoft_metrics_include_label'.
     * Label values are matched case-insensitively.
     * 
     */
    public Optional>> labelIncludeFilter() {
        return Optional.ofNullable(this.labelIncludeFilter);
    }

    /**
     * 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);
    }

    /**
     * List of streams that this data source will be sent to.
     * 
     */
    @Import(name="streams")
    private @Nullable Output>> streams;

    /**
     * @return List of streams that this data source will be sent to.
     * 
     */
    public Optional>>> streams() {
        return Optional.ofNullable(this.streams);
    }

    private PrometheusForwarderDataSourceArgs() {}

    private PrometheusForwarderDataSourceArgs(PrometheusForwarderDataSourceArgs $) {
        this.labelIncludeFilter = $.labelIncludeFilter;
        this.name = $.name;
        this.streams = $.streams;
    }

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

    public static final class Builder {
        private PrometheusForwarderDataSourceArgs $;

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

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

        /**
         * @param labelIncludeFilter The list of label inclusion filters in the form of label "name-value" pairs.
         * Currently only one label is supported: 'microsoft_metrics_include_label'.
         * Label values are matched case-insensitively.
         * 
         * @return builder
         * 
         */
        public Builder labelIncludeFilter(@Nullable Output> labelIncludeFilter) {
            $.labelIncludeFilter = labelIncludeFilter;
            return this;
        }

        /**
         * @param labelIncludeFilter The list of label inclusion filters in the form of label "name-value" pairs.
         * Currently only one label is supported: 'microsoft_metrics_include_label'.
         * Label values are matched case-insensitively.
         * 
         * @return builder
         * 
         */
        public Builder labelIncludeFilter(Map labelIncludeFilter) {
            return labelIncludeFilter(Output.of(labelIncludeFilter));
        }

        /**
         * @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 streams List of streams that this data source 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.
         * 
         * @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.
         * 
         * @return builder
         * 
         */
        public Builder streams(Either... streams) {
            return streams(List.of(streams));
        }

        public PrometheusForwarderDataSourceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy