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

com.pulumi.azure.monitoring.inputs.ScheduledQueryRulesAlertTriggerMetricTriggerArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.monitoring.inputs;

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


public final class ScheduledQueryRulesAlertTriggerMetricTriggerArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScheduledQueryRulesAlertTriggerMetricTriggerArgs Empty = new ScheduledQueryRulesAlertTriggerMetricTriggerArgs();

    /**
     * Evaluation of metric on a particular column.
     * 
     */
    @Import(name="metricColumn")
    private @Nullable Output metricColumn;

    /**
     * @return Evaluation of metric on a particular column.
     * 
     */
    public Optional> metricColumn() {
        return Optional.ofNullable(this.metricColumn);
    }

    /**
     * Metric Trigger Type - 'Consecutive' or 'Total'.
     * 
     */
    @Import(name="metricTriggerType", required=true)
    private Output metricTriggerType;

    /**
     * @return Metric Trigger Type - 'Consecutive' or 'Total'.
     * 
     */
    public Output metricTriggerType() {
        return this.metricTriggerType;
    }

    /**
     * Evaluation operation for rule - 'Equal', 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'.
     * 
     */
    @Import(name="operator", required=true)
    private Output operator;

    /**
     * @return Evaluation operation for rule - 'Equal', 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'.
     * 
     */
    public Output operator() {
        return this.operator;
    }

    /**
     * The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
     * 
     */
    @Import(name="threshold", required=true)
    private Output threshold;

    /**
     * @return The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
     * 
     */
    public Output threshold() {
        return this.threshold;
    }

    private ScheduledQueryRulesAlertTriggerMetricTriggerArgs() {}

    private ScheduledQueryRulesAlertTriggerMetricTriggerArgs(ScheduledQueryRulesAlertTriggerMetricTriggerArgs $) {
        this.metricColumn = $.metricColumn;
        this.metricTriggerType = $.metricTriggerType;
        this.operator = $.operator;
        this.threshold = $.threshold;
    }

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

    public static final class Builder {
        private ScheduledQueryRulesAlertTriggerMetricTriggerArgs $;

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

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

        /**
         * @param metricColumn Evaluation of metric on a particular column.
         * 
         * @return builder
         * 
         */
        public Builder metricColumn(@Nullable Output metricColumn) {
            $.metricColumn = metricColumn;
            return this;
        }

        /**
         * @param metricColumn Evaluation of metric on a particular column.
         * 
         * @return builder
         * 
         */
        public Builder metricColumn(String metricColumn) {
            return metricColumn(Output.of(metricColumn));
        }

        /**
         * @param metricTriggerType Metric Trigger Type - 'Consecutive' or 'Total'.
         * 
         * @return builder
         * 
         */
        public Builder metricTriggerType(Output metricTriggerType) {
            $.metricTriggerType = metricTriggerType;
            return this;
        }

        /**
         * @param metricTriggerType Metric Trigger Type - 'Consecutive' or 'Total'.
         * 
         * @return builder
         * 
         */
        public Builder metricTriggerType(String metricTriggerType) {
            return metricTriggerType(Output.of(metricTriggerType));
        }

        /**
         * @param operator Evaluation operation for rule - 'Equal', 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'.
         * 
         * @return builder
         * 
         */
        public Builder operator(Output operator) {
            $.operator = operator;
            return this;
        }

        /**
         * @param operator Evaluation operation for rule - 'Equal', 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'.
         * 
         * @return builder
         * 
         */
        public Builder operator(String operator) {
            return operator(Output.of(operator));
        }

        /**
         * @param threshold The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
         * 
         * @return builder
         * 
         */
        public Builder threshold(Output threshold) {
            $.threshold = threshold;
            return this;
        }

        /**
         * @param threshold The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
         * 
         * @return builder
         * 
         */
        public Builder threshold(Double threshold) {
            return threshold(Output.of(threshold));
        }

        public ScheduledQueryRulesAlertTriggerMetricTriggerArgs build() {
            if ($.metricTriggerType == null) {
                throw new MissingRequiredPropertyException("ScheduledQueryRulesAlertTriggerMetricTriggerArgs", "metricTriggerType");
            }
            if ($.operator == null) {
                throw new MissingRequiredPropertyException("ScheduledQueryRulesAlertTriggerMetricTriggerArgs", "operator");
            }
            if ($.threshold == null) {
                throw new MissingRequiredPropertyException("ScheduledQueryRulesAlertTriggerMetricTriggerArgs", "threshold");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy