com.tencentcloudapi.tcss.v20201101.models.WarningRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-tcss Show documentation
Show all versions of tencentcloud-sdk-java-tcss 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.tcss.v20201101.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class WarningRule extends AbstractModel{
/**
* 告警事件类型:
镜像仓库安全-木马:IMG_REG_VIRUS
镜像仓库安全-漏洞:IMG_REG_VUL
镜像仓库安全-敏感信息:IMG_REG_RISK
镜像安全-木马:IMG_VIRUS
镜像安全-漏洞:IMG_VUL
镜像安全-敏感信息:IMG_RISK
镜像安全-镜像拦截:IMG_INTERCEPT
运行时安全-容器逃逸:RUNTIME_ESCAPE
运行时安全-异常进程:RUNTIME_FILE
运行时安全-异常文件访问:RUNTIME_PROCESS
运行时安全-高危系统调用:RUNTIME_SYSCALL
运行时安全-反弹Shell:RUNTIME_REVERSE_SHELL
运行时安全-木马:RUNTIME_VIRUS
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* 开关状态:
打开:ON
关闭:OFF
*/
@SerializedName("Switch")
@Expose
private String Switch;
/**
* 告警开始时间,格式: HH:mm
*/
@SerializedName("BeginTime")
@Expose
private String BeginTime;
/**
* 告警结束时间,格式: HH:mm
*/
@SerializedName("EndTime")
@Expose
private String EndTime;
/**
* 告警等级策略控制,二进制位每位代表一个含义,值以字符串类型传递
控制开关分为高、中、低,则二进制位分别为:第1位:低,第2位:中,第3位:高,0表示关闭、1表示打开。
如:高危和中危打开告警,低危关闭告警,则二进制值为:110
告警类型不区分等级控制,则传1。
*/
@SerializedName("ControlBits")
@Expose
private String ControlBits;
/**
* Get 告警事件类型:
镜像仓库安全-木马:IMG_REG_VIRUS
镜像仓库安全-漏洞:IMG_REG_VUL
镜像仓库安全-敏感信息:IMG_REG_RISK
镜像安全-木马:IMG_VIRUS
镜像安全-漏洞:IMG_VUL
镜像安全-敏感信息:IMG_RISK
镜像安全-镜像拦截:IMG_INTERCEPT
运行时安全-容器逃逸:RUNTIME_ESCAPE
运行时安全-异常进程:RUNTIME_FILE
运行时安全-异常文件访问:RUNTIME_PROCESS
运行时安全-高危系统调用:RUNTIME_SYSCALL
运行时安全-反弹Shell:RUNTIME_REVERSE_SHELL
运行时安全-木马:RUNTIME_VIRUS
* @return Type 告警事件类型:
镜像仓库安全-木马:IMG_REG_VIRUS
镜像仓库安全-漏洞:IMG_REG_VUL
镜像仓库安全-敏感信息:IMG_REG_RISK
镜像安全-木马:IMG_VIRUS
镜像安全-漏洞:IMG_VUL
镜像安全-敏感信息:IMG_RISK
镜像安全-镜像拦截:IMG_INTERCEPT
运行时安全-容器逃逸:RUNTIME_ESCAPE
运行时安全-异常进程:RUNTIME_FILE
运行时安全-异常文件访问:RUNTIME_PROCESS
运行时安全-高危系统调用:RUNTIME_SYSCALL
运行时安全-反弹Shell:RUNTIME_REVERSE_SHELL
运行时安全-木马:RUNTIME_VIRUS
*/
public String getType() {
return this.Type;
}
/**
* Set 告警事件类型:
镜像仓库安全-木马:IMG_REG_VIRUS
镜像仓库安全-漏洞:IMG_REG_VUL
镜像仓库安全-敏感信息:IMG_REG_RISK
镜像安全-木马:IMG_VIRUS
镜像安全-漏洞:IMG_VUL
镜像安全-敏感信息:IMG_RISK
镜像安全-镜像拦截:IMG_INTERCEPT
运行时安全-容器逃逸:RUNTIME_ESCAPE
运行时安全-异常进程:RUNTIME_FILE
运行时安全-异常文件访问:RUNTIME_PROCESS
运行时安全-高危系统调用:RUNTIME_SYSCALL
运行时安全-反弹Shell:RUNTIME_REVERSE_SHELL
运行时安全-木马:RUNTIME_VIRUS
* @param Type 告警事件类型:
镜像仓库安全-木马:IMG_REG_VIRUS
镜像仓库安全-漏洞:IMG_REG_VUL
镜像仓库安全-敏感信息:IMG_REG_RISK
镜像安全-木马:IMG_VIRUS
镜像安全-漏洞:IMG_VUL
镜像安全-敏感信息:IMG_RISK
镜像安全-镜像拦截:IMG_INTERCEPT
运行时安全-容器逃逸:RUNTIME_ESCAPE
运行时安全-异常进程:RUNTIME_FILE
运行时安全-异常文件访问:RUNTIME_PROCESS
运行时安全-高危系统调用:RUNTIME_SYSCALL
运行时安全-反弹Shell:RUNTIME_REVERSE_SHELL
运行时安全-木马:RUNTIME_VIRUS
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get 开关状态:
打开:ON
关闭:OFF
* @return Switch 开关状态:
打开:ON
关闭:OFF
*/
public String getSwitch() {
return this.Switch;
}
/**
* Set 开关状态:
打开:ON
关闭:OFF
* @param Switch 开关状态:
打开:ON
关闭:OFF
*/
public void setSwitch(String Switch) {
this.Switch = Switch;
}
/**
* Get 告警开始时间,格式: HH:mm
* @return BeginTime 告警开始时间,格式: HH:mm
*/
public String getBeginTime() {
return this.BeginTime;
}
/**
* Set 告警开始时间,格式: HH:mm
* @param BeginTime 告警开始时间,格式: HH:mm
*/
public void setBeginTime(String BeginTime) {
this.BeginTime = BeginTime;
}
/**
* Get 告警结束时间,格式: HH:mm
* @return EndTime 告警结束时间,格式: HH:mm
*/
public String getEndTime() {
return this.EndTime;
}
/**
* Set 告警结束时间,格式: HH:mm
* @param EndTime 告警结束时间,格式: HH:mm
*/
public void setEndTime(String EndTime) {
this.EndTime = EndTime;
}
/**
* Get 告警等级策略控制,二进制位每位代表一个含义,值以字符串类型传递
控制开关分为高、中、低,则二进制位分别为:第1位:低,第2位:中,第3位:高,0表示关闭、1表示打开。
如:高危和中危打开告警,低危关闭告警,则二进制值为:110
告警类型不区分等级控制,则传1。
* @return ControlBits 告警等级策略控制,二进制位每位代表一个含义,值以字符串类型传递
控制开关分为高、中、低,则二进制位分别为:第1位:低,第2位:中,第3位:高,0表示关闭、1表示打开。
如:高危和中危打开告警,低危关闭告警,则二进制值为:110
告警类型不区分等级控制,则传1。
*/
public String getControlBits() {
return this.ControlBits;
}
/**
* Set 告警等级策略控制,二进制位每位代表一个含义,值以字符串类型传递
控制开关分为高、中、低,则二进制位分别为:第1位:低,第2位:中,第3位:高,0表示关闭、1表示打开。
如:高危和中危打开告警,低危关闭告警,则二进制值为:110
告警类型不区分等级控制,则传1。
* @param ControlBits 告警等级策略控制,二进制位每位代表一个含义,值以字符串类型传递
控制开关分为高、中、低,则二进制位分别为:第1位:低,第2位:中,第3位:高,0表示关闭、1表示打开。
如:高危和中危打开告警,低危关闭告警,则二进制值为:110
告警类型不区分等级控制,则传1。
*/
public void setControlBits(String ControlBits) {
this.ControlBits = ControlBits;
}
public WarningRule() {
}
/**
* 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 WarningRule(WarningRule source) {
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.Switch != null) {
this.Switch = new String(source.Switch);
}
if (source.BeginTime != null) {
this.BeginTime = new String(source.BeginTime);
}
if (source.EndTime != null) {
this.EndTime = new String(source.EndTime);
}
if (source.ControlBits != null) {
this.ControlBits = new String(source.ControlBits);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "Switch", this.Switch);
this.setParamSimple(map, prefix + "BeginTime", this.BeginTime);
this.setParamSimple(map, prefix + "EndTime", this.EndTime);
this.setParamSimple(map, prefix + "ControlBits", this.ControlBits);
}
}