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

com.volcengine.model.tls.request.ModifyAlarmRequest Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.model.tls.request;

import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.volcengine.model.tls.AlarmPeriodSetting;
import com.volcengine.model.tls.QueryRequest;
import com.volcengine.model.tls.RequestCycle;
import lombok.Data;
import lombok.NoArgsConstructor;

import static com.volcengine.model.tls.Const.*;

@Data
@NoArgsConstructor
public class ModifyAlarmRequest {
    @JSONField(name = ALARM_ID)
    String alarmId;
    @JSONField(name = ALARM_NAME)
    String alarmName;
    @JSONField(name = STATUS)
    Boolean status;
    @JSONField(name = QUERY_REQUEST)
    List queryRequest;
    @JSONField(name = REQUEST_CYCLE)
    RequestCycle requestCycle;
    @JSONField(name = CONDITION)
    String condition;
    @JSONField(name = TRIGGER_PERIOD)
    Integer triggerPeriod;
    @JSONField(name = ALARM_PERIOD)
    Integer alarmPeriod;
    @JSONField(name = ALARM_NOTIFY_GROUP)
    List alarmNotifyGroup;
    @JSONField(name = USER_DEFINE_MSG)
    String userDefineMsg;
    @JSONField(name = SEVERITY)
    String severity;
    @JSONField(name = ALARM_PERIOD_DETAIL)
    AlarmPeriodSetting alarmPeriodDetail;

    /**
     * @return 告警策略 ID
     */
    public String getAlarmId() {
        return alarmId;
    }

    /**
     * @param alarmId 告警策略 ID
     */
    public void setAlarmId(String alarmId) {
        this.alarmId = alarmId;
    }

    /**
     * @return 告警策略名称
     */
    public String getAlarmName() {
        return alarmName;
    }

    /**
     * @param alarmName 告警策略名称
     */
    public void setAlarmName(String alarmName) {
        this.alarmName = alarmName;
    }


    /**
     * @return 是否开启告警策略。默认值为 true
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * @param status 是否开启告警策略。默认值为 true
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    /**
     * @return 检索分析语句,可配置 1~3 条
     */
    public List getQueryRequest() {
        return queryRequest;
    }

    /**
     * @param queryRequest 检索分析语句,可配置 1~3 条
     */
    public void setQueryRequest(List queryRequest) {
        this.queryRequest = queryRequest;
    }

    /**
     * @return 告警任务的执行周期
     */
    public RequestCycle getRequestCycle() {
        return requestCycle;
    }

    /**
     * @param requestCycle 告警任务的执行周期
     */
    public void setRequestCycle(RequestCycle requestCycle) {
        this.requestCycle = requestCycle;
    }

    /**
     * @return 告警触发条件
     */
    public String getCondition() {
        return condition;
    }

    /**
     * @param condition 告警触发条件
     */
    public void setCondition(String condition) {
        this.condition = condition;
    }

    /**
     * @return 触发告警持续周期。最小值为 1,最大值为10。
     */
    public Integer getTriggerPeriod() {
        return triggerPeriod;
    }

    /**
     * @param triggerPeriod 触发告警持续周期。最小值为 1,最大值为10。
     */
    public void setTriggerPeriod(Integer triggerPeriod) {
        this.triggerPeriod = triggerPeriod;
    }

    /**
     * @return 告警重复的周期
     */
    public Integer getAlarmPeriod() {
        return alarmPeriod;
    }

    /**
     * @param alarmPeriod 告警重复的周期
     */
    public void setAlarmPeriod(Integer alarmPeriod) {
        this.alarmPeriod = alarmPeriod;
    }

    /**
     * @return 告警对应的通知列表
     */
    public List getAlarmNotifyGroup() {
        return alarmNotifyGroup;
    }

    /**
     * @param alarmNotifyGroup 告警对应的通知列表
     */
    public void setAlarmNotifyGroup(List alarmNotifyGroup) {
        this.alarmNotifyGroup = alarmNotifyGroup;
    }

    /**
     * @return 告警通知的内容
     */
    public String getUserDefineMsg() {
        return userDefineMsg;
    }

    /**
     * @param userDefineMsg 告警通知的内容
     */
    public void setUserDefineMsg(String userDefineMsg) {
        this.userDefineMsg = userDefineMsg;
    }

    /**
     * @return 告警通知的级别,即告警的严重程度
     */
    public String getSeverity() {
        return severity;
    }

    /**
     * @param severity 告警通知的级别,即告警的严重程度
     */
    public void setSeverity(String severity) {
        this.severity = severity;
    }

    /**
     * @return 告警通知发送的周期
     */
    public AlarmPeriodSetting getAlarmPeriodDetail() {
        return alarmPeriodDetail;
    }

    /**
     * @param alarmPeriodDetail 告警通知发送的周期
     */
    public void setAlarmPeriodDetail(AlarmPeriodSetting alarmPeriodDetail) {
        this.alarmPeriodDetail = alarmPeriodDetail;
    }

    /**
     * @return 检验必填参数,true合法false不合法
     */
    public boolean CheckValidation() {
        if (this.alarmId == null) {
            return false;
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy