
com.tencentcloudapi.monitor.v20180724.models.ModifyAlarmPolicyConditionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyAlarmPolicyConditionRequest extends AbstractModel {
/**
* Module name, which is fixed at "monitor"
*/
@SerializedName("Module")
@Expose
private String Module;
/**
* Alarm policy ID
*/
@SerializedName("PolicyId")
@Expose
private String PolicyId;
/**
* ID of trigger condition template. This parameter can be left empty.
*/
@SerializedName("ConditionTemplateId")
@Expose
private Long ConditionTemplateId;
/**
* Metric trigger condition
*/
@SerializedName("Condition")
@Expose
private AlarmPolicyCondition Condition;
/**
* Event trigger condition
*/
@SerializedName("EventCondition")
@Expose
private AlarmPolicyEventCondition EventCondition;
/**
* Global filter.
*/
@SerializedName("Filter")
@Expose
private AlarmPolicyFilter Filter;
/**
* Aggregation dimension list, which is used to specify which dimension keys data is grouped by.
*/
@SerializedName("GroupBy")
@Expose
private String [] GroupBy;
/**
* Log alarm creation request parameters
*/
@SerializedName("LogAlarmReqInfo")
@Expose
private LogAlarmReq LogAlarmReqInfo;
/**
* Template ID, which is dedicated to TencentCloud Managed Service for Prometheus.
*/
@SerializedName("NoticeIds")
@Expose
private String [] NoticeIds;
/**
* Status (`0`: Disabled; `1`: Enabled)
*/
@SerializedName("Enable")
@Expose
private Long Enable;
/**
* Name of the policy dedicated to TMP
*/
@SerializedName("PolicyName")
@Expose
private String PolicyName;
/**
* The alert configured for an event
*/
@SerializedName("EbSubject")
@Expose
private String EbSubject;
/**
* Get Module name, which is fixed at "monitor"
* @return Module Module name, which is fixed at "monitor"
*/
public String getModule() {
return this.Module;
}
/**
* Set Module name, which is fixed at "monitor"
* @param Module Module name, which is fixed at "monitor"
*/
public void setModule(String Module) {
this.Module = Module;
}
/**
* Get Alarm policy ID
* @return PolicyId Alarm policy ID
*/
public String getPolicyId() {
return this.PolicyId;
}
/**
* Set Alarm policy ID
* @param PolicyId Alarm policy ID
*/
public void setPolicyId(String PolicyId) {
this.PolicyId = PolicyId;
}
/**
* Get ID of trigger condition template. This parameter can be left empty.
* @return ConditionTemplateId ID of trigger condition template. This parameter can be left empty.
*/
public Long getConditionTemplateId() {
return this.ConditionTemplateId;
}
/**
* Set ID of trigger condition template. This parameter can be left empty.
* @param ConditionTemplateId ID of trigger condition template. This parameter can be left empty.
*/
public void setConditionTemplateId(Long ConditionTemplateId) {
this.ConditionTemplateId = ConditionTemplateId;
}
/**
* Get Metric trigger condition
* @return Condition Metric trigger condition
*/
public AlarmPolicyCondition getCondition() {
return this.Condition;
}
/**
* Set Metric trigger condition
* @param Condition Metric trigger condition
*/
public void setCondition(AlarmPolicyCondition Condition) {
this.Condition = Condition;
}
/**
* Get Event trigger condition
* @return EventCondition Event trigger condition
*/
public AlarmPolicyEventCondition getEventCondition() {
return this.EventCondition;
}
/**
* Set Event trigger condition
* @param EventCondition Event trigger condition
*/
public void setEventCondition(AlarmPolicyEventCondition EventCondition) {
this.EventCondition = EventCondition;
}
/**
* Get Global filter.
* @return Filter Global filter.
*/
public AlarmPolicyFilter getFilter() {
return this.Filter;
}
/**
* Set Global filter.
* @param Filter Global filter.
*/
public void setFilter(AlarmPolicyFilter Filter) {
this.Filter = Filter;
}
/**
* Get Aggregation dimension list, which is used to specify which dimension keys data is grouped by.
* @return GroupBy Aggregation dimension list, which is used to specify which dimension keys data is grouped by.
*/
public String [] getGroupBy() {
return this.GroupBy;
}
/**
* Set Aggregation dimension list, which is used to specify which dimension keys data is grouped by.
* @param GroupBy Aggregation dimension list, which is used to specify which dimension keys data is grouped by.
*/
public void setGroupBy(String [] GroupBy) {
this.GroupBy = GroupBy;
}
/**
* Get Log alarm creation request parameters
* @return LogAlarmReqInfo Log alarm creation request parameters
*/
public LogAlarmReq getLogAlarmReqInfo() {
return this.LogAlarmReqInfo;
}
/**
* Set Log alarm creation request parameters
* @param LogAlarmReqInfo Log alarm creation request parameters
*/
public void setLogAlarmReqInfo(LogAlarmReq LogAlarmReqInfo) {
this.LogAlarmReqInfo = LogAlarmReqInfo;
}
/**
* Get Template ID, which is dedicated to TencentCloud Managed Service for Prometheus.
* @return NoticeIds Template ID, which is dedicated to TencentCloud Managed Service for Prometheus.
*/
public String [] getNoticeIds() {
return this.NoticeIds;
}
/**
* Set Template ID, which is dedicated to TencentCloud Managed Service for Prometheus.
* @param NoticeIds Template ID, which is dedicated to TencentCloud Managed Service for Prometheus.
*/
public void setNoticeIds(String [] NoticeIds) {
this.NoticeIds = NoticeIds;
}
/**
* Get Status (`0`: Disabled; `1`: Enabled)
* @return Enable Status (`0`: Disabled; `1`: Enabled)
*/
public Long getEnable() {
return this.Enable;
}
/**
* Set Status (`0`: Disabled; `1`: Enabled)
* @param Enable Status (`0`: Disabled; `1`: Enabled)
*/
public void setEnable(Long Enable) {
this.Enable = Enable;
}
/**
* Get Name of the policy dedicated to TMP
* @return PolicyName Name of the policy dedicated to TMP
*/
public String getPolicyName() {
return this.PolicyName;
}
/**
* Set Name of the policy dedicated to TMP
* @param PolicyName Name of the policy dedicated to TMP
*/
public void setPolicyName(String PolicyName) {
this.PolicyName = PolicyName;
}
/**
* Get The alert configured for an event
* @return EbSubject The alert configured for an event
*/
public String getEbSubject() {
return this.EbSubject;
}
/**
* Set The alert configured for an event
* @param EbSubject The alert configured for an event
*/
public void setEbSubject(String EbSubject) {
this.EbSubject = EbSubject;
}
public ModifyAlarmPolicyConditionRequest() {
}
/**
* 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 ModifyAlarmPolicyConditionRequest(ModifyAlarmPolicyConditionRequest source) {
if (source.Module != null) {
this.Module = new String(source.Module);
}
if (source.PolicyId != null) {
this.PolicyId = new String(source.PolicyId);
}
if (source.ConditionTemplateId != null) {
this.ConditionTemplateId = new Long(source.ConditionTemplateId);
}
if (source.Condition != null) {
this.Condition = new AlarmPolicyCondition(source.Condition);
}
if (source.EventCondition != null) {
this.EventCondition = new AlarmPolicyEventCondition(source.EventCondition);
}
if (source.Filter != null) {
this.Filter = new AlarmPolicyFilter(source.Filter);
}
if (source.GroupBy != null) {
this.GroupBy = new String[source.GroupBy.length];
for (int i = 0; i < source.GroupBy.length; i++) {
this.GroupBy[i] = new String(source.GroupBy[i]);
}
}
if (source.LogAlarmReqInfo != null) {
this.LogAlarmReqInfo = new LogAlarmReq(source.LogAlarmReqInfo);
}
if (source.NoticeIds != null) {
this.NoticeIds = new String[source.NoticeIds.length];
for (int i = 0; i < source.NoticeIds.length; i++) {
this.NoticeIds[i] = new String(source.NoticeIds[i]);
}
}
if (source.Enable != null) {
this.Enable = new Long(source.Enable);
}
if (source.PolicyName != null) {
this.PolicyName = new String(source.PolicyName);
}
if (source.EbSubject != null) {
this.EbSubject = new String(source.EbSubject);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Module", this.Module);
this.setParamSimple(map, prefix + "PolicyId", this.PolicyId);
this.setParamSimple(map, prefix + "ConditionTemplateId", this.ConditionTemplateId);
this.setParamObj(map, prefix + "Condition.", this.Condition);
this.setParamObj(map, prefix + "EventCondition.", this.EventCondition);
this.setParamObj(map, prefix + "Filter.", this.Filter);
this.setParamArraySimple(map, prefix + "GroupBy.", this.GroupBy);
this.setParamObj(map, prefix + "LogAlarmReqInfo.", this.LogAlarmReqInfo);
this.setParamArraySimple(map, prefix + "NoticeIds.", this.NoticeIds);
this.setParamSimple(map, prefix + "Enable", this.Enable);
this.setParamSimple(map, prefix + "PolicyName", this.PolicyName);
this.setParamSimple(map, prefix + "EbSubject", this.EbSubject);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy