com.pulumi.alicloud.cms.outputs.GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** 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.alicloud.cms.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical {
/**
* @return The comparison operator of the threshold for critical-level alerts.Valid values: `GreaterThanOrEqualToThreshold`, `GreaterThanThreshold`, `LessThanOrEqualToThreshold`, `LessThanThreshold`, `NotEqualToThreshold`, `GreaterThanYesterday`, `LessThanYesterday`, `GreaterThanLastWeek`, `LessThanLastWeek`, `GreaterThanLastPeriod`, `LessThanLastPeriod`.
*
*/
private String comparisonOperator;
/**
* @return The statistical aggregation method for critical-level alerts.
*
*/
private String statistics;
/**
* @return The threshold for critical-level alerts.
*
*/
private String threshold;
/**
* @return The consecutive number of times for which the metric value is measured before a
* critical-level alert is triggered.
*
*/
private String times;
private GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical() {}
/**
* @return The comparison operator of the threshold for critical-level alerts.Valid values: `GreaterThanOrEqualToThreshold`, `GreaterThanThreshold`, `LessThanOrEqualToThreshold`, `LessThanThreshold`, `NotEqualToThreshold`, `GreaterThanYesterday`, `LessThanYesterday`, `GreaterThanLastWeek`, `LessThanLastWeek`, `GreaterThanLastPeriod`, `LessThanLastPeriod`.
*
*/
public String comparisonOperator() {
return this.comparisonOperator;
}
/**
* @return The statistical aggregation method for critical-level alerts.
*
*/
public String statistics() {
return this.statistics;
}
/**
* @return The threshold for critical-level alerts.
*
*/
public String threshold() {
return this.threshold;
}
/**
* @return The consecutive number of times for which the metric value is measured before a
* critical-level alert is triggered.
*
*/
public String times() {
return this.times;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String comparisonOperator;
private String statistics;
private String threshold;
private String times;
public Builder() {}
public Builder(GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical defaults) {
Objects.requireNonNull(defaults);
this.comparisonOperator = defaults.comparisonOperator;
this.statistics = defaults.statistics;
this.threshold = defaults.threshold;
this.times = defaults.times;
}
@CustomType.Setter
public Builder comparisonOperator(String comparisonOperator) {
if (comparisonOperator == null) {
throw new MissingRequiredPropertyException("GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical", "comparisonOperator");
}
this.comparisonOperator = comparisonOperator;
return this;
}
@CustomType.Setter
public Builder statistics(String statistics) {
if (statistics == null) {
throw new MissingRequiredPropertyException("GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical", "statistics");
}
this.statistics = statistics;
return this;
}
@CustomType.Setter
public Builder threshold(String threshold) {
if (threshold == null) {
throw new MissingRequiredPropertyException("GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical", "threshold");
}
this.threshold = threshold;
return this;
}
@CustomType.Setter
public Builder times(String times) {
if (times == null) {
throw new MissingRequiredPropertyException("GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical", "times");
}
this.times = times;
return this;
}
public GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical build() {
final var _resultValue = new GetMetricRuleTemplatesTemplateAlertTemplateEscalationCritical();
_resultValue.comparisonOperator = comparisonOperator;
_resultValue.statistics = statistics;
_resultValue.threshold = threshold;
_resultValue.times = times;
return _resultValue;
}
}
}