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

com.pulumi.azurenative.insights.outputs.DynamicThresholdFailingPeriodsResponse 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.util.Objects;

@CustomType
public final class DynamicThresholdFailingPeriodsResponse {
    /**
     * @return The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
     * 
     */
    private Double minFailingPeriodsToAlert;
    /**
     * @return The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
     * 
     */
    private Double numberOfEvaluationPeriods;

    private DynamicThresholdFailingPeriodsResponse() {}
    /**
     * @return The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
     * 
     */
    public Double minFailingPeriodsToAlert() {
        return this.minFailingPeriodsToAlert;
    }
    /**
     * @return The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
     * 
     */
    public Double numberOfEvaluationPeriods() {
        return this.numberOfEvaluationPeriods;
    }

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

    public static Builder builder(DynamicThresholdFailingPeriodsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Double minFailingPeriodsToAlert;
        private Double numberOfEvaluationPeriods;
        public Builder() {}
        public Builder(DynamicThresholdFailingPeriodsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.minFailingPeriodsToAlert = defaults.minFailingPeriodsToAlert;
    	      this.numberOfEvaluationPeriods = defaults.numberOfEvaluationPeriods;
        }

        @CustomType.Setter
        public Builder minFailingPeriodsToAlert(Double minFailingPeriodsToAlert) {
            if (minFailingPeriodsToAlert == null) {
              throw new MissingRequiredPropertyException("DynamicThresholdFailingPeriodsResponse", "minFailingPeriodsToAlert");
            }
            this.minFailingPeriodsToAlert = minFailingPeriodsToAlert;
            return this;
        }
        @CustomType.Setter
        public Builder numberOfEvaluationPeriods(Double numberOfEvaluationPeriods) {
            if (numberOfEvaluationPeriods == null) {
              throw new MissingRequiredPropertyException("DynamicThresholdFailingPeriodsResponse", "numberOfEvaluationPeriods");
            }
            this.numberOfEvaluationPeriods = numberOfEvaluationPeriods;
            return this;
        }
        public DynamicThresholdFailingPeriodsResponse build() {
            final var _resultValue = new DynamicThresholdFailingPeriodsResponse();
            _resultValue.minFailingPeriodsToAlert = minFailingPeriodsToAlert;
            _resultValue.numberOfEvaluationPeriods = numberOfEvaluationPeriods;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy