com.tencentcloudapi.monitor.v20180724.models.AlarmPolicyRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-monitor Show documentation
Show all versions of tencentcloud-sdk-java-monitor Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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.monitor.v20180724.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class AlarmPolicyRule extends AbstractModel{
/**
* 指标名或事件名,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询 。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("MetricName")
@Expose
private String MetricName;
/**
* 秒数 统计周期,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* 英文运算符
intelligent=无阈值智能检测
eq=等于
ge=大于等于
gt=大于
le=小于等于
lt=小于
ne=不等于
day_increase=天同比增长
day_decrease=天同比下降
day_wave=天同比波动
week_increase=周同比增长
week_decrease=周同比下降
week_wave=周同比波动
cycle_increase=环比增长
cycle_decrease=环比下降
cycle_wave=环比波动
re=正则匹配
支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Operator")
@Expose
private String Operator;
/**
* 阈值,支持的范围可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Value")
@Expose
private String Value;
/**
* 周期数 持续通知周期 1=持续1个周期 2=持续2个周期...,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ContinuePeriod")
@Expose
private Long ContinuePeriod;
/**
* 秒数 告警间隔 0=不重复 300=每5分钟告警一次 600=每10分钟告警一次 900=每15分钟告警一次 1800=每30分钟告警一次 3600=每1小时告警一次 7200=每2小时告警一次 10800=每3小时告警一次 21600=每6小时告警一次 43200=每12小时告警一次 86400=每1天告警一次
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("NoticeFrequency")
@Expose
private Long NoticeFrequency;
/**
* 告警频率是否指数增长 0=否 1=是
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("IsPowerNotice")
@Expose
private Long IsPowerNotice;
/**
* 对于单个触发规则的过滤条件
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Filter")
@Expose
private AlarmPolicyFilter Filter;
/**
* 指标展示名,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* 单位,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Unit")
@Expose
private String Unit;
/**
* 触发条件类型 STATIC=静态阈值 DYNAMIC=动态阈值。创建或编辑策略时,如不填则默认为 STATIC。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("RuleType")
@Expose
private String RuleType;
/**
* Get 指标名或事件名,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询 。
注意:此字段可能返回 null,表示取不到有效值。
* @return MetricName 指标名或事件名,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询 。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getMetricName() {
return this.MetricName;
}
/**
* Set 指标名或事件名,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询 。
注意:此字段可能返回 null,表示取不到有效值。
* @param MetricName 指标名或事件名,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询 。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setMetricName(String MetricName) {
this.MetricName = MetricName;
}
/**
* Get 秒数 统计周期,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
* @return Period 秒数 统计周期,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set 秒数 统计周期,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
* @param Period 秒数 统计周期,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get 英文运算符
intelligent=无阈值智能检测
eq=等于
ge=大于等于
gt=大于
le=小于等于
lt=小于
ne=不等于
day_increase=天同比增长
day_decrease=天同比下降
day_wave=天同比波动
week_increase=周同比增长
week_decrease=周同比下降
week_wave=周同比波动
cycle_increase=环比增长
cycle_decrease=环比下降
cycle_wave=环比波动
re=正则匹配
支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
* @return Operator 英文运算符
intelligent=无阈值智能检测
eq=等于
ge=大于等于
gt=大于
le=小于等于
lt=小于
ne=不等于
day_increase=天同比增长
day_decrease=天同比下降
day_wave=天同比波动
week_increase=周同比增长
week_decrease=周同比下降
week_wave=周同比波动
cycle_increase=环比增长
cycle_decrease=环比下降
cycle_wave=环比波动
re=正则匹配
支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getOperator() {
return this.Operator;
}
/**
* Set 英文运算符
intelligent=无阈值智能检测
eq=等于
ge=大于等于
gt=大于
le=小于等于
lt=小于
ne=不等于
day_increase=天同比增长
day_decrease=天同比下降
day_wave=天同比波动
week_increase=周同比增长
week_decrease=周同比下降
week_wave=周同比波动
cycle_increase=环比增长
cycle_decrease=环比下降
cycle_wave=环比波动
re=正则匹配
支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
* @param Operator 英文运算符
intelligent=无阈值智能检测
eq=等于
ge=大于等于
gt=大于
le=小于等于
lt=小于
ne=不等于
day_increase=天同比增长
day_decrease=天同比下降
day_wave=天同比波动
week_increase=周同比增长
week_decrease=周同比下降
week_wave=周同比波动
cycle_increase=环比增长
cycle_decrease=环比下降
cycle_wave=环比波动
re=正则匹配
支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setOperator(String Operator) {
this.Operator = Operator;
}
/**
* Get 阈值,支持的范围可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
* @return Value 阈值,支持的范围可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getValue() {
return this.Value;
}
/**
* Set 阈值,支持的范围可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
* @param Value 阈值,支持的范围可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setValue(String Value) {
this.Value = Value;
}
/**
* Get 周期数 持续通知周期 1=持续1个周期 2=持续2个周期...,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询
注意:此字段可能返回 null,表示取不到有效值。
* @return ContinuePeriod 周期数 持续通知周期 1=持续1个周期 2=持续2个周期...,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getContinuePeriod() {
return this.ContinuePeriod;
}
/**
* Set 周期数 持续通知周期 1=持续1个周期 2=持续2个周期...,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询
注意:此字段可能返回 null,表示取不到有效值。
* @param ContinuePeriod 周期数 持续通知周期 1=持续1个周期 2=持续2个周期...,支持的值可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setContinuePeriod(Long ContinuePeriod) {
this.ContinuePeriod = ContinuePeriod;
}
/**
* Get 秒数 告警间隔 0=不重复 300=每5分钟告警一次 600=每10分钟告警一次 900=每15分钟告警一次 1800=每30分钟告警一次 3600=每1小时告警一次 7200=每2小时告警一次 10800=每3小时告警一次 21600=每6小时告警一次 43200=每12小时告警一次 86400=每1天告警一次
注意:此字段可能返回 null,表示取不到有效值。
* @return NoticeFrequency 秒数 告警间隔 0=不重复 300=每5分钟告警一次 600=每10分钟告警一次 900=每15分钟告警一次 1800=每30分钟告警一次 3600=每1小时告警一次 7200=每2小时告警一次 10800=每3小时告警一次 21600=每6小时告警一次 43200=每12小时告警一次 86400=每1天告警一次
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getNoticeFrequency() {
return this.NoticeFrequency;
}
/**
* Set 秒数 告警间隔 0=不重复 300=每5分钟告警一次 600=每10分钟告警一次 900=每15分钟告警一次 1800=每30分钟告警一次 3600=每1小时告警一次 7200=每2小时告警一次 10800=每3小时告警一次 21600=每6小时告警一次 43200=每12小时告警一次 86400=每1天告警一次
注意:此字段可能返回 null,表示取不到有效值。
* @param NoticeFrequency 秒数 告警间隔 0=不重复 300=每5分钟告警一次 600=每10分钟告警一次 900=每15分钟告警一次 1800=每30分钟告警一次 3600=每1小时告警一次 7200=每2小时告警一次 10800=每3小时告警一次 21600=每6小时告警一次 43200=每12小时告警一次 86400=每1天告警一次
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setNoticeFrequency(Long NoticeFrequency) {
this.NoticeFrequency = NoticeFrequency;
}
/**
* Get 告警频率是否指数增长 0=否 1=是
注意:此字段可能返回 null,表示取不到有效值。
* @return IsPowerNotice 告警频率是否指数增长 0=否 1=是
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getIsPowerNotice() {
return this.IsPowerNotice;
}
/**
* Set 告警频率是否指数增长 0=否 1=是
注意:此字段可能返回 null,表示取不到有效值。
* @param IsPowerNotice 告警频率是否指数增长 0=否 1=是
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setIsPowerNotice(Long IsPowerNotice) {
this.IsPowerNotice = IsPowerNotice;
}
/**
* Get 对于单个触发规则的过滤条件
注意:此字段可能返回 null,表示取不到有效值。
* @return Filter 对于单个触发规则的过滤条件
注意:此字段可能返回 null,表示取不到有效值。
*/
public AlarmPolicyFilter getFilter() {
return this.Filter;
}
/**
* Set 对于单个触发规则的过滤条件
注意:此字段可能返回 null,表示取不到有效值。
* @param Filter 对于单个触发规则的过滤条件
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setFilter(AlarmPolicyFilter Filter) {
this.Filter = Filter;
}
/**
* Get 指标展示名,用于出参
注意:此字段可能返回 null,表示取不到有效值。
* @return Description 指标展示名,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getDescription() {
return this.Description;
}
/**
* Set 指标展示名,用于出参
注意:此字段可能返回 null,表示取不到有效值。
* @param Description 指标展示名,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get 单位,用于出参
注意:此字段可能返回 null,表示取不到有效值。
* @return Unit 单位,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getUnit() {
return this.Unit;
}
/**
* Set 单位,用于出参
注意:此字段可能返回 null,表示取不到有效值。
* @param Unit 单位,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setUnit(String Unit) {
this.Unit = Unit;
}
/**
* Get 触发条件类型 STATIC=静态阈值 DYNAMIC=动态阈值。创建或编辑策略时,如不填则默认为 STATIC。
注意:此字段可能返回 null,表示取不到有效值。
* @return RuleType 触发条件类型 STATIC=静态阈值 DYNAMIC=动态阈值。创建或编辑策略时,如不填则默认为 STATIC。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getRuleType() {
return this.RuleType;
}
/**
* Set 触发条件类型 STATIC=静态阈值 DYNAMIC=动态阈值。创建或编辑策略时,如不填则默认为 STATIC。
注意:此字段可能返回 null,表示取不到有效值。
* @param RuleType 触发条件类型 STATIC=静态阈值 DYNAMIC=动态阈值。创建或编辑策略时,如不填则默认为 STATIC。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRuleType(String RuleType) {
this.RuleType = RuleType;
}
public AlarmPolicyRule() {
}
/**
* 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 AlarmPolicyRule(AlarmPolicyRule source) {
if (source.MetricName != null) {
this.MetricName = new String(source.MetricName);
}
if (source.Period != null) {
this.Period = new Long(source.Period);
}
if (source.Operator != null) {
this.Operator = new String(source.Operator);
}
if (source.Value != null) {
this.Value = new String(source.Value);
}
if (source.ContinuePeriod != null) {
this.ContinuePeriod = new Long(source.ContinuePeriod);
}
if (source.NoticeFrequency != null) {
this.NoticeFrequency = new Long(source.NoticeFrequency);
}
if (source.IsPowerNotice != null) {
this.IsPowerNotice = new Long(source.IsPowerNotice);
}
if (source.Filter != null) {
this.Filter = new AlarmPolicyFilter(source.Filter);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.Unit != null) {
this.Unit = new String(source.Unit);
}
if (source.RuleType != null) {
this.RuleType = new String(source.RuleType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "MetricName", this.MetricName);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "Operator", this.Operator);
this.setParamSimple(map, prefix + "Value", this.Value);
this.setParamSimple(map, prefix + "ContinuePeriod", this.ContinuePeriod);
this.setParamSimple(map, prefix + "NoticeFrequency", this.NoticeFrequency);
this.setParamSimple(map, prefix + "IsPowerNotice", this.IsPowerNotice);
this.setParamObj(map, prefix + "Filter.", this.Filter);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "Unit", this.Unit);
this.setParamSimple(map, prefix + "RuleType", this.RuleType);
}
}