| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
Alert.Builder |
alertId(String alertId)
告警ID
示例值:7115030004018184212
|
Alert.Builder |
alertLevel(AlertAlertLevelEnum alertLevel)
告警等级:严重/警告/提醒
示例值:2
|
Alert.Builder |
alertLevel(Integer alertLevel)
告警等级:严重/警告/提醒
示例值:2
|
Alert.Builder |
alertRule(String alertRule)
规则名称
示例值:签到板断开连接
|
Alert.Builder |
alertStrategy(String alertStrategy)
告警规则的规则描述
示例值:连续1个周期(共1分钟),控制器电量 < 50%,则告警
|
Alert.Builder |
alertTime(String alertTime)
告警通知发生时间(unix时间,单位sec)
示例值:1656914944
|
Alert |
build() |
Alert.Builder |
contacts(Contact[] contacts)
告警联系人
示例值:
|
Alert.Builder |
monitorTarget(AlertMonitorTargetEnum monitorTarget)
触发告警规则的监控对象
示例值:2
|
Alert.Builder |
monitorTarget(Integer monitorTarget)
触发告警规则的监控对象
示例值:2
|
Alert.Builder |
notifyMethods(Integer[] notifyMethods)
通知方式
示例值:[0,1]
|
Alert.Builder |
resourceScope(String resourceScope)
触发告警规则的会议室/服务器具体的名称
示例值:XX层级
|
public Alert.Builder alertId(String alertId)
示例值:7115030004018184212
alertId - public Alert.Builder resourceScope(String resourceScope)
示例值:XX层级
resourceScope - public Alert.Builder monitorTarget(Integer monitorTarget)
示例值:2
monitorTarget - public Alert.Builder monitorTarget(AlertMonitorTargetEnum monitorTarget)
示例值:2
monitorTarget - AlertMonitorTargetEnumpublic Alert.Builder alertStrategy(String alertStrategy)
示例值:连续1个周期(共1分钟),控制器电量 < 50%,则告警
alertStrategy - public Alert.Builder alertTime(String alertTime)
示例值:1656914944
alertTime - public Alert.Builder alertLevel(Integer alertLevel)
示例值:2
alertLevel - public Alert.Builder alertLevel(AlertAlertLevelEnum alertLevel)
示例值:2
alertLevel - AlertAlertLevelEnumpublic Alert.Builder contacts(Contact[] contacts)
示例值:
contacts - public Alert.Builder notifyMethods(Integer[] notifyMethods)
示例值:[0,1]
notifyMethods - public Alert.Builder alertRule(String alertRule)
示例值:签到板断开连接
alertRule - public Alert build()
Copyright © 2022. All rights reserved.