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

com.tencentcloudapi.as.v20180419.models.MetricAlarm Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.as.v20180419.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class MetricAlarm extends AbstractModel{

    /**
    * Comparison operator. Value range: 
  • GREATER_THAN: greater than
  • GREATER_THAN_OR_EQUAL_TO: greater than or equal to
  • LESS_THAN: less than
  • LESS_THAN_OR_EQUAL_TO: less than or equal to
  • EQUAL_TO: equal to
  • NOT_EQUAL_TO: not equal to
  • */ @SerializedName("ComparisonOperator") @Expose private String ComparisonOperator; /** * Metric name. Value range:
  • CPU_UTILIZATION: CPU utilization
  • MEM_UTILIZATION: memory utilization
  • LAN_TRAFFIC_OUT: private network outbound bandwidth
  • LAN_TRAFFIC_IN: private network inbound bandwidth
  • WAN_TRAFFIC_OUT: public network outbound bandwidth
  • WAN_TRAFFIC_IN: public network inbound bandwidth
  • */ @SerializedName("MetricName") @Expose private String MetricName; /** * Alarming threshold:
  • CPU_UTILIZATION: [1, 100] in %
  • MEM_UTILIZATION: [1, 100] in %
  • LAN_TRAFFIC_OUT: >0 in Mbps
  • LAN_TRAFFIC_IN: >0 in Mbps
  • WAN_TRAFFIC_OUT: >0 in Mbps
  • WAN_TRAFFIC_IN: >0 in Mbps
  • */ @SerializedName("Threshold") @Expose private Long Threshold; /** * Time period in seconds. Enumerated values: 60, 300. */ @SerializedName("Period") @Expose private Long Period; /** * Number of repetitions. Value range: [1, 10] */ @SerializedName("ContinuousTime") @Expose private Long ContinuousTime; /** * Statistics type. Value range:
  • AVERAGE: average
  • MAXIMUM: maximum
  • MINIMUM: minimum

  • Default value: AVERAGE */ @SerializedName("Statistic") @Expose private String Statistic; /** * Get Comparison operator. Value range:
  • GREATER_THAN: greater than
  • GREATER_THAN_OR_EQUAL_TO: greater than or equal to
  • LESS_THAN: less than
  • LESS_THAN_OR_EQUAL_TO: less than or equal to
  • EQUAL_TO: equal to
  • NOT_EQUAL_TO: not equal to
  • * @return ComparisonOperator Comparison operator. Value range:
  • GREATER_THAN: greater than
  • GREATER_THAN_OR_EQUAL_TO: greater than or equal to
  • LESS_THAN: less than
  • LESS_THAN_OR_EQUAL_TO: less than or equal to
  • EQUAL_TO: equal to
  • NOT_EQUAL_TO: not equal to
  • */ public String getComparisonOperator() { return this.ComparisonOperator; } /** * Set Comparison operator. Value range:
  • GREATER_THAN: greater than
  • GREATER_THAN_OR_EQUAL_TO: greater than or equal to
  • LESS_THAN: less than
  • LESS_THAN_OR_EQUAL_TO: less than or equal to
  • EQUAL_TO: equal to
  • NOT_EQUAL_TO: not equal to
  • * @param ComparisonOperator Comparison operator. Value range:
  • GREATER_THAN: greater than
  • GREATER_THAN_OR_EQUAL_TO: greater than or equal to
  • LESS_THAN: less than
  • LESS_THAN_OR_EQUAL_TO: less than or equal to
  • EQUAL_TO: equal to
  • NOT_EQUAL_TO: not equal to
  • */ public void setComparisonOperator(String ComparisonOperator) { this.ComparisonOperator = ComparisonOperator; } /** * Get Metric name. Value range:
  • CPU_UTILIZATION: CPU utilization
  • MEM_UTILIZATION: memory utilization
  • LAN_TRAFFIC_OUT: private network outbound bandwidth
  • LAN_TRAFFIC_IN: private network inbound bandwidth
  • WAN_TRAFFIC_OUT: public network outbound bandwidth
  • WAN_TRAFFIC_IN: public network inbound bandwidth
  • * @return MetricName Metric name. Value range:
  • CPU_UTILIZATION: CPU utilization
  • MEM_UTILIZATION: memory utilization
  • LAN_TRAFFIC_OUT: private network outbound bandwidth
  • LAN_TRAFFIC_IN: private network inbound bandwidth
  • WAN_TRAFFIC_OUT: public network outbound bandwidth
  • WAN_TRAFFIC_IN: public network inbound bandwidth
  • */ public String getMetricName() { return this.MetricName; } /** * Set Metric name. Value range:
  • CPU_UTILIZATION: CPU utilization
  • MEM_UTILIZATION: memory utilization
  • LAN_TRAFFIC_OUT: private network outbound bandwidth
  • LAN_TRAFFIC_IN: private network inbound bandwidth
  • WAN_TRAFFIC_OUT: public network outbound bandwidth
  • WAN_TRAFFIC_IN: public network inbound bandwidth
  • * @param MetricName Metric name. Value range:
  • CPU_UTILIZATION: CPU utilization
  • MEM_UTILIZATION: memory utilization
  • LAN_TRAFFIC_OUT: private network outbound bandwidth
  • LAN_TRAFFIC_IN: private network inbound bandwidth
  • WAN_TRAFFIC_OUT: public network outbound bandwidth
  • WAN_TRAFFIC_IN: public network inbound bandwidth
  • */ public void setMetricName(String MetricName) { this.MetricName = MetricName; } /** * Get Alarming threshold:
  • CPU_UTILIZATION: [1, 100] in %
  • MEM_UTILIZATION: [1, 100] in %
  • LAN_TRAFFIC_OUT: >0 in Mbps
  • LAN_TRAFFIC_IN: >0 in Mbps
  • WAN_TRAFFIC_OUT: >0 in Mbps
  • WAN_TRAFFIC_IN: >0 in Mbps
  • * @return Threshold Alarming threshold:
  • CPU_UTILIZATION: [1, 100] in %
  • MEM_UTILIZATION: [1, 100] in %
  • LAN_TRAFFIC_OUT: >0 in Mbps
  • LAN_TRAFFIC_IN: >0 in Mbps
  • WAN_TRAFFIC_OUT: >0 in Mbps
  • WAN_TRAFFIC_IN: >0 in Mbps
  • */ public Long getThreshold() { return this.Threshold; } /** * Set Alarming threshold:
  • CPU_UTILIZATION: [1, 100] in %
  • MEM_UTILIZATION: [1, 100] in %
  • LAN_TRAFFIC_OUT: >0 in Mbps
  • LAN_TRAFFIC_IN: >0 in Mbps
  • WAN_TRAFFIC_OUT: >0 in Mbps
  • WAN_TRAFFIC_IN: >0 in Mbps
  • * @param Threshold Alarming threshold:
  • CPU_UTILIZATION: [1, 100] in %
  • MEM_UTILIZATION: [1, 100] in %
  • LAN_TRAFFIC_OUT: >0 in Mbps
  • LAN_TRAFFIC_IN: >0 in Mbps
  • WAN_TRAFFIC_OUT: >0 in Mbps
  • WAN_TRAFFIC_IN: >0 in Mbps
  • */ public void setThreshold(Long Threshold) { this.Threshold = Threshold; } /** * Get Time period in seconds. Enumerated values: 60, 300. * @return Period Time period in seconds. Enumerated values: 60, 300. */ public Long getPeriod() { return this.Period; } /** * Set Time period in seconds. Enumerated values: 60, 300. * @param Period Time period in seconds. Enumerated values: 60, 300. */ public void setPeriod(Long Period) { this.Period = Period; } /** * Get Number of repetitions. Value range: [1, 10] * @return ContinuousTime Number of repetitions. Value range: [1, 10] */ public Long getContinuousTime() { return this.ContinuousTime; } /** * Set Number of repetitions. Value range: [1, 10] * @param ContinuousTime Number of repetitions. Value range: [1, 10] */ public void setContinuousTime(Long ContinuousTime) { this.ContinuousTime = ContinuousTime; } /** * Get Statistics type. Value range:
  • AVERAGE: average
  • MAXIMUM: maximum
  • MINIMUM: minimum

  • Default value: AVERAGE * @return Statistic Statistics type. Value range:
  • AVERAGE: average
  • MAXIMUM: maximum
  • MINIMUM: minimum

  • Default value: AVERAGE */ public String getStatistic() { return this.Statistic; } /** * Set Statistics type. Value range:
  • AVERAGE: average
  • MAXIMUM: maximum
  • MINIMUM: minimum

  • Default value: AVERAGE * @param Statistic Statistics type. Value range:
  • AVERAGE: average
  • MAXIMUM: maximum
  • MINIMUM: minimum

  • Default value: AVERAGE */ public void setStatistic(String Statistic) { this.Statistic = Statistic; } public MetricAlarm() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public MetricAlarm(MetricAlarm source) { if (source.ComparisonOperator != null) { this.ComparisonOperator = new String(source.ComparisonOperator); } if (source.MetricName != null) { this.MetricName = new String(source.MetricName); } if (source.Threshold != null) { this.Threshold = new Long(source.Threshold); } if (source.Period != null) { this.Period = new Long(source.Period); } if (source.ContinuousTime != null) { this.ContinuousTime = new Long(source.ContinuousTime); } if (source.Statistic != null) { this.Statistic = new String(source.Statistic); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "ComparisonOperator", this.ComparisonOperator); this.setParamSimple(map, prefix + "MetricName", this.MetricName); this.setParamSimple(map, prefix + "Threshold", this.Threshold); this.setParamSimple(map, prefix + "Period", this.Period); this.setParamSimple(map, prefix + "ContinuousTime", this.ContinuousTime); this.setParamSimple(map, prefix + "Statistic", this.Statistic); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy