public class WarningRule extends AbstractModel
Constructor and Description |
---|
WarningRule() |
WarningRule(WarningRule source)
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getBeginTime()
Get Alert start time in the format of "HH:mm"
|
String |
getControlBits()
Get Alert level policy control.
|
String |
getEndTime()
Get Alert end time in the format of "HH:mm"
|
String |
getSwitch()
Get Switch status:
`ON`: On.
|
String |
getType()
Get Alert event type:
Image repository security - Trojan: `IMG_REG_VIRUS`.
|
void |
setBeginTime(String BeginTime)
Set Alert start time in the format of "HH:mm"
|
void |
setControlBits(String ControlBits)
Set Alert level policy control.
|
void |
setEndTime(String EndTime)
Set Alert end time in the format of "HH:mm"
|
void |
setSwitch(String Switch)
Set Switch status:
`ON`: On.
|
void |
setType(String Type)
Set Alert event type:
Image repository security - Trojan: `IMG_REG_VIRUS`.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public WarningRule()
public WarningRule(WarningRule source)
public String getType()
public void setType(String Type)
Type
- Alert event type:
Image repository security - Trojan: `IMG_REG_VIRUS`.
Image repository security - Vulnerability: `IMG_REG_VUL`.
Image repository security - Sensitive data: `IMG_REG_RISK`.
Image security - Trojan: `IMG_VIRUS`.
Image security - Vulnerability: `IMG_VUL`.
Image security - Sensitive data: `IMG_RISK`.
Image security - Image blocking: `IMG_INTERCEPT`.
Runtime security - Container escape: `RUNTIME_ESCAPE`.
Runtime security - Abnormal process: `RUNTIME_FILE`.
Runtime security - Abnormal file access: `RUNTIME_PROCESS`.
Runtime security - High-risk syscall: `RUNTIME_SYSCALL`.
Runtime security - Reverse shell: `RUNTIME_REVERSE_SHELL`.
Runtime security - Trojan: `RUNTIME_VIRUS`.public String getSwitch()
public void setSwitch(String Switch)
Switch
- Switch status:
`ON`: On.
`OFF`: Off.public String getBeginTime()
public void setBeginTime(String BeginTime)
BeginTime
- Alert start time in the format of "HH:mm"public String getEndTime()
public void setEndTime(String EndTime)
EndTime
- Alert end time in the format of "HH:mm"public String getControlBits()
public void setControlBits(String ControlBits)
ControlBits
- Alert level policy control. Each binary bit represents a meaning, and the value is passed as a string.
The control switch can be high, medium, or low, corresponding to the third, second, and first binary bit, respectively. Valid values: `0` (off); `1` (on).
For example, if the high and medium levels indicate to enable the alert and the low level indicates to disable it, the binary value is `110`.
If level control does not take effect for the alert type, pass in `1`.Copyright © 2023. All rights reserved.