告警配置
获取告警模版配置
post/api/alarm/rules/get
Request body
agent_abnormalboolean
探针服务异常时发出通知
agent_offlineboolean
探针连接断开时发出警告
agent_onlineboolean
探针连接恢复时发出通知
aggregationboolean
是否开启汇总告警
alarm_agentsstring[]
告警的探针范围
alarm_groupsstring[]
告警的业务组范围
alarm_groups_treeobject[]
告警的蜜罐范围树,用于前端显示
alarm_honeynetsstring[]
告警的蜜网范围
alarm_honeypotsstring[]
告警的蜜罐范围
alarm_threshold_timeinteger
威胁告警汇总间隔
arp_eventboolean
检测到ARP攻击时报告
connection_eventboolean
检测到蜜罐入侵时报告
connection_event_risk_level1 | 2 | 3 | 4
蜜罐入侵事件的风险级别,1表示无威胁 2表示低危, 3表示中危, 4表示高危
cpu_threshold_timeinteger
CPU使用率连续超过阈值且持续该时间长度后告警,以分钟为单位
cpu_threshold_usagenumber
CPU使用率阈值,为0时不告警
disk_threshold_usagenumber
磁盘占用率超过该阈值后告警,为0时不告警
display_namestring
告警配置模版名称
enableboolean
是否开启告警模版
idinteger
告警配置模版id
mem_threshold_timeinteger
内存使用率连续超过阈值且持续该时间长度后告警,以分钟为单位
mem_threshold_usagenumber
内存使用率阈值,为0时不告警
ping_eventboolean
检测到Ping扫描时报告
portraitboolean
获取攻击者画像时报告
scanner_eventboolean
检测到端口探测时报告
smtp_config_idinteger
邮箱配置表ID
typestring
模版类型,alert_popup弹窗告警,template告警模版
user_rolestring
模版所属用户角色
usernamestring
模版所属用户
webhook_config_idstring uuid
Webhook配置表ID
Response
errstring
错误信息
msgstring
具体错误信息描述