public class BashPolicy extends AbstractModel
header, skipSign
Constructor and Description |
---|
BashPolicy() |
BashPolicy(BashPolicy 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 |
---|---|
Long |
getBashAction()
Get 0:告警 1:白名单 2:拦截
|
Long |
getCategory()
Get 策略类型,0:系统 1:用户
|
String |
getCreateTime()
Get 创建时间
|
Long |
getDealOldEvents()
Get 是否处理旧事件为白名单 0=不处理 1=处理
|
String |
getDescript()
Get 策略描述
|
Long |
getEnable()
Get 1:有效 0:无效
|
Long |
getEventId()
Get 事件列表点击“加入白名单”时,需要传EventId 事件的id
|
Long |
getId()
Get 策略ID
|
Long |
getLevel()
Get 危险等级(0:无,1: 高危 2:中危 3: 低危)
|
String |
getModifyTime()
Get 修改时间
|
String |
getName()
Get 策略名称
|
String[] |
getQuuids()
Get 生效主机的QUUID集合
|
String |
getRule()
Get 正则表达式 base64 加密,该字段废弃,如果写入则自动替换为Rules.Process.CmdLine
|
PolicyRules |
getRules()
Get 规则表达式
|
Long |
getScope()
Get 生效范围(0:一组quuid 1:所有专业版(包含旗舰版) 2:所有旗舰版 3:所有主机)
|
String[] |
getUuids()
Get 老版本兼容可能会用到
|
Long |
getWhite()
Get 0:黑名单 1:白名单
|
void |
setBashAction(Long BashAction)
Set 0:告警 1:白名单 2:拦截
|
void |
setCategory(Long Category)
Set 策略类型,0:系统 1:用户
|
void |
setCreateTime(String CreateTime)
Set 创建时间
|
void |
setDealOldEvents(Long DealOldEvents)
Set 是否处理旧事件为白名单 0=不处理 1=处理
|
void |
setDescript(String Descript)
Set 策略描述
|
void |
setEnable(Long Enable)
Set 1:有效 0:无效
|
void |
setEventId(Long EventId)
Set 事件列表点击“加入白名单”时,需要传EventId 事件的id
|
void |
setId(Long Id)
Set 策略ID
|
void |
setLevel(Long Level)
Set 危险等级(0:无,1: 高危 2:中危 3: 低危)
|
void |
setModifyTime(String ModifyTime)
Set 修改时间
|
void |
setName(String Name)
Set 策略名称
|
void |
setQuuids(String[] Quuids)
Set 生效主机的QUUID集合
|
void |
setRule(String Rule)
Set 正则表达式 base64 加密,该字段废弃,如果写入则自动替换为Rules.Process.CmdLine
|
void |
setRules(PolicyRules Rules)
Set 规则表达式
|
void |
setScope(Long Scope)
Set 生效范围(0:一组quuid 1:所有专业版(包含旗舰版) 2:所有旗舰版 3:所有主机)
|
void |
setUuids(String[] Uuids)
Set 老版本兼容可能会用到
|
void |
setWhite(Long White)
Set 0:黑名单 1:白名单
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public BashPolicy()
public BashPolicy(BashPolicy source)
public String getName()
public void setName(String Name)
Name
- 策略名称public Long getEnable()
public void setEnable(Long Enable)
Enable
- 1:有效 0:无效public Long getWhite()
public void setWhite(Long White)
White
- 0:黑名单 1:白名单public Long getBashAction()
public void setBashAction(Long BashAction)
BashAction
- 0:告警 1:白名单 2:拦截public String getRule()
public void setRule(String Rule)
Rule
- 正则表达式 base64 加密,该字段废弃,如果写入则自动替换为Rules.Process.CmdLinepublic Long getLevel()
public void setLevel(Long Level)
Level
- 危险等级(0:无,1: 高危 2:中危 3: 低危)public Long getScope()
public void setScope(Long Scope)
Scope
- 生效范围(0:一组quuid 1:所有专业版(包含旗舰版) 2:所有旗舰版 3:所有主机)public Long getId()
public void setId(Long Id)
Id
- 策略IDpublic String getDescript()
public void setDescript(String Descript)
Descript
- 策略描述public Long getEventId()
public void setEventId(Long EventId)
EventId
- 事件列表点击“加入白名单”时,需要传EventId 事件的idpublic Long getDealOldEvents()
public void setDealOldEvents(Long DealOldEvents)
DealOldEvents
- 是否处理旧事件为白名单 0=不处理 1=处理public String[] getQuuids()
public void setQuuids(String[] Quuids)
Quuids
- 生效主机的QUUID集合public Long getCategory()
public void setCategory(Long Category)
Category
- 策略类型,0:系统 1:用户public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- 创建时间public String getModifyTime()
public void setModifyTime(String ModifyTime)
ModifyTime
- 修改时间public String[] getUuids()
public void setUuids(String[] Uuids)
Uuids
- 老版本兼容可能会用到public PolicyRules getRules()
public void setRules(PolicyRules Rules)
Rules
- 规则表达式Copyright © 2024. All rights reserved.