com.tencentcloudapi.monitor.v20180724.models.AlarmPolicyCondition 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 AlarmPolicyCondition extends AbstractModel{
/**
* 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用.
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("IsUnionRule")
@Expose
private Long IsUnionRule;
/**
* 告警触发条件列表
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Rules")
@Expose
private AlarmPolicyRule [] Rules;
/**
* 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件.
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ComplexExpression")
@Expose
private String ComplexExpression;
/**
* Get 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用.
注意:此字段可能返回 null,表示取不到有效值。
* @return IsUnionRule 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用.
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getIsUnionRule() {
return this.IsUnionRule;
}
/**
* Set 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用.
注意:此字段可能返回 null,表示取不到有效值。
* @param IsUnionRule 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用.
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setIsUnionRule(Long IsUnionRule) {
this.IsUnionRule = IsUnionRule;
}
/**
* Get 告警触发条件列表
注意:此字段可能返回 null,表示取不到有效值。
* @return Rules 告警触发条件列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public AlarmPolicyRule [] getRules() {
return this.Rules;
}
/**
* Set 告警触发条件列表
注意:此字段可能返回 null,表示取不到有效值。
* @param Rules 告警触发条件列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setRules(AlarmPolicyRule [] Rules) {
this.Rules = Rules;
}
/**
* Get 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件.
注意:此字段可能返回 null,表示取不到有效值。
* @return ComplexExpression 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件.
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getComplexExpression() {
return this.ComplexExpression;
}
/**
* Set 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件.
注意:此字段可能返回 null,表示取不到有效值。
* @param ComplexExpression 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件.
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setComplexExpression(String ComplexExpression) {
this.ComplexExpression = ComplexExpression;
}
public AlarmPolicyCondition() {
}
/**
* 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 AlarmPolicyCondition(AlarmPolicyCondition source) {
if (source.IsUnionRule != null) {
this.IsUnionRule = new Long(source.IsUnionRule);
}
if (source.Rules != null) {
this.Rules = new AlarmPolicyRule[source.Rules.length];
for (int i = 0; i < source.Rules.length; i++) {
this.Rules[i] = new AlarmPolicyRule(source.Rules[i]);
}
}
if (source.ComplexExpression != null) {
this.ComplexExpression = new String(source.ComplexExpression);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "IsUnionRule", this.IsUnionRule);
this.setParamArrayObj(map, prefix + "Rules.", this.Rules);
this.setParamSimple(map, prefix + "ComplexExpression", this.ComplexExpression);
}
}