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

com.pulumi.azurenative.containerservice.inputs.ManagedClusterAzureMonitorProfileMetricsArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.containerservice.inputs.ManagedClusterAzureMonitorProfileKubeStateMetricsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview.
 * 
 */
public final class ManagedClusterAzureMonitorProfileMetricsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagedClusterAzureMonitorProfileMetricsArgs Empty = new ManagedClusterAzureMonitorProfileMetricsArgs();

    /**
     * Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.
     * 
     */
    @Import(name="enabled", required=true)
    private Output enabled;

    /**
     * @return Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.
     * 
     */
    public Output enabled() {
        return this.enabled;
    }

    /**
     * Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.
     * 
     */
    @Import(name="kubeStateMetrics")
    private @Nullable Output kubeStateMetrics;

    /**
     * @return Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.
     * 
     */
    public Optional> kubeStateMetrics() {
        return Optional.ofNullable(this.kubeStateMetrics);
    }

    private ManagedClusterAzureMonitorProfileMetricsArgs() {}

    private ManagedClusterAzureMonitorProfileMetricsArgs(ManagedClusterAzureMonitorProfileMetricsArgs $) {
        this.enabled = $.enabled;
        this.kubeStateMetrics = $.kubeStateMetrics;
    }

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

    public static final class Builder {
        private ManagedClusterAzureMonitorProfileMetricsArgs $;

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

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

        /**
         * @param enabled Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param kubeStateMetrics Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.
         * 
         * @return builder
         * 
         */
        public Builder kubeStateMetrics(@Nullable Output kubeStateMetrics) {
            $.kubeStateMetrics = kubeStateMetrics;
            return this;
        }

        /**
         * @param kubeStateMetrics Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.
         * 
         * @return builder
         * 
         */
        public Builder kubeStateMetrics(ManagedClusterAzureMonitorProfileKubeStateMetricsArgs kubeStateMetrics) {
            return kubeStateMetrics(Output.of(kubeStateMetrics));
        }

        public ManagedClusterAzureMonitorProfileMetricsArgs build() {
            if ($.enabled == null) {
                throw new MissingRequiredPropertyException("ManagedClusterAzureMonitorProfileMetricsArgs", "enabled");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy