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

com.pulumi.alicloud.ess.outputs.GetAlarmsAlarm Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.ess.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetAlarmsAlarm {
    /**
     * @return The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
     * 
     */
    private List alarmActions;
    /**
     * @return Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
     * 
     */
    private Integer cloudMonitorGroupId;
    /**
     * @return The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.
     * 
     */
    private String comparisonOperator;
    /**
     * @return The description for the alarm.
     * 
     */
    private String description;
    /**
     * @return The dimension map for the alarm's associated metric.
     * 
     */
    private Map dimensions;
    /**
     * @return Whether to enable specific ess alarm.
     * 
     */
    private Boolean enable;
    /**
     * @return The number of times that needs to satisfies comparison condition before transition into ALARM state.
     * 
     */
    private Integer evaluationCount;
    /**
     * @return The id of alarm.
     * 
     */
    private String id;
    /**
     * @return The name for the alarm's associated metric.
     * 
     */
    private String metricName;
    /**
     * @return The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
     * 
     */
    private String metricType;
    /**
     * @return The name for ess alarm.
     * 
     */
    private String name;
    /**
     * @return The period in seconds over which the specified statistic is applied.
     * 
     */
    private Integer period;
    /**
     * @return Scaling group id the alarms belong to.
     * 
     */
    private String scalingGroupId;
    /**
     * @return The state of alarm task.
     * 
     */
    private String state;
    /**
     * @return The statistic to apply to the alarm's associated metric.
     * 
     */
    private String statistics;
    /**
     * @return The value against which the specified statistics is compared.
     * 
     */
    private String threshold;

    private GetAlarmsAlarm() {}
    /**
     * @return The list of actions to execute when this alarm transition into an ALARM state. Each action is specified as ess scaling rule ari.
     * 
     */
    public List alarmActions() {
        return this.alarmActions;
    }
    /**
     * @return Defines the application group id defined by CMS which is assigned when you upload custom metric to CMS, only available for custom metirc.
     * 
     */
    public Integer cloudMonitorGroupId() {
        return this.cloudMonitorGroupId;
    }
    /**
     * @return The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand.
     * 
     */
    public String comparisonOperator() {
        return this.comparisonOperator;
    }
    /**
     * @return The description for the alarm.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The dimension map for the alarm's associated metric.
     * 
     */
    public Map dimensions() {
        return this.dimensions;
    }
    /**
     * @return Whether to enable specific ess alarm.
     * 
     */
    public Boolean enable() {
        return this.enable;
    }
    /**
     * @return The number of times that needs to satisfies comparison condition before transition into ALARM state.
     * 
     */
    public Integer evaluationCount() {
        return this.evaluationCount;
    }
    /**
     * @return The id of alarm.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name for the alarm's associated metric.
     * 
     */
    public String metricName() {
        return this.metricName;
    }
    /**
     * @return The type for the alarm's associated metric. Supported value: system, custom. "system" means the metric data is collected by Aliyun Cloud Monitor Service(CMS), "custom" means the metric data is upload to CMS by users. Defaults to system.
     * 
     */
    public String metricType() {
        return this.metricType;
    }
    /**
     * @return The name for ess alarm.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The period in seconds over which the specified statistic is applied.
     * 
     */
    public Integer period() {
        return this.period;
    }
    /**
     * @return Scaling group id the alarms belong to.
     * 
     */
    public String scalingGroupId() {
        return this.scalingGroupId;
    }
    /**
     * @return The state of alarm task.
     * 
     */
    public String state() {
        return this.state;
    }
    /**
     * @return The statistic to apply to the alarm's associated metric.
     * 
     */
    public String statistics() {
        return this.statistics;
    }
    /**
     * @return The value against which the specified statistics is compared.
     * 
     */
    public String threshold() {
        return this.threshold;
    }

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

    public static Builder builder(GetAlarmsAlarm defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List alarmActions;
        private Integer cloudMonitorGroupId;
        private String comparisonOperator;
        private String description;
        private Map dimensions;
        private Boolean enable;
        private Integer evaluationCount;
        private String id;
        private String metricName;
        private String metricType;
        private String name;
        private Integer period;
        private String scalingGroupId;
        private String state;
        private String statistics;
        private String threshold;
        public Builder() {}
        public Builder(GetAlarmsAlarm defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alarmActions = defaults.alarmActions;
    	      this.cloudMonitorGroupId = defaults.cloudMonitorGroupId;
    	      this.comparisonOperator = defaults.comparisonOperator;
    	      this.description = defaults.description;
    	      this.dimensions = defaults.dimensions;
    	      this.enable = defaults.enable;
    	      this.evaluationCount = defaults.evaluationCount;
    	      this.id = defaults.id;
    	      this.metricName = defaults.metricName;
    	      this.metricType = defaults.metricType;
    	      this.name = defaults.name;
    	      this.period = defaults.period;
    	      this.scalingGroupId = defaults.scalingGroupId;
    	      this.state = defaults.state;
    	      this.statistics = defaults.statistics;
    	      this.threshold = defaults.threshold;
        }

        @CustomType.Setter
        public Builder alarmActions(List alarmActions) {
            if (alarmActions == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "alarmActions");
            }
            this.alarmActions = alarmActions;
            return this;
        }
        public Builder alarmActions(String... alarmActions) {
            return alarmActions(List.of(alarmActions));
        }
        @CustomType.Setter
        public Builder cloudMonitorGroupId(Integer cloudMonitorGroupId) {
            if (cloudMonitorGroupId == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "cloudMonitorGroupId");
            }
            this.cloudMonitorGroupId = cloudMonitorGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder comparisonOperator(String comparisonOperator) {
            if (comparisonOperator == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "comparisonOperator");
            }
            this.comparisonOperator = comparisonOperator;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder dimensions(Map dimensions) {
            if (dimensions == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "dimensions");
            }
            this.dimensions = dimensions;
            return this;
        }
        @CustomType.Setter
        public Builder enable(Boolean enable) {
            if (enable == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "enable");
            }
            this.enable = enable;
            return this;
        }
        @CustomType.Setter
        public Builder evaluationCount(Integer evaluationCount) {
            if (evaluationCount == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "evaluationCount");
            }
            this.evaluationCount = evaluationCount;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder metricName(String metricName) {
            if (metricName == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "metricName");
            }
            this.metricName = metricName;
            return this;
        }
        @CustomType.Setter
        public Builder metricType(String metricType) {
            if (metricType == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "metricType");
            }
            this.metricType = metricType;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder period(Integer period) {
            if (period == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "period");
            }
            this.period = period;
            return this;
        }
        @CustomType.Setter
        public Builder scalingGroupId(String scalingGroupId) {
            if (scalingGroupId == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "scalingGroupId");
            }
            this.scalingGroupId = scalingGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "state");
            }
            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder statistics(String statistics) {
            if (statistics == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "statistics");
            }
            this.statistics = statistics;
            return this;
        }
        @CustomType.Setter
        public Builder threshold(String threshold) {
            if (threshold == null) {
              throw new MissingRequiredPropertyException("GetAlarmsAlarm", "threshold");
            }
            this.threshold = threshold;
            return this;
        }
        public GetAlarmsAlarm build() {
            final var _resultValue = new GetAlarmsAlarm();
            _resultValue.alarmActions = alarmActions;
            _resultValue.cloudMonitorGroupId = cloudMonitorGroupId;
            _resultValue.comparisonOperator = comparisonOperator;
            _resultValue.description = description;
            _resultValue.dimensions = dimensions;
            _resultValue.enable = enable;
            _resultValue.evaluationCount = evaluationCount;
            _resultValue.id = id;
            _resultValue.metricName = metricName;
            _resultValue.metricType = metricType;
            _resultValue.name = name;
            _resultValue.period = period;
            _resultValue.scalingGroupId = scalingGroupId;
            _resultValue.state = state;
            _resultValue.statistics = statistics;
            _resultValue.threshold = threshold;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy