类 Alert.Builder

java.lang.Object
com.lark.oapi.service.vc.v1.model.Alert.Builder
封闭类:
Alert

public static class Alert.Builder extends Object
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • alertId

      public Alert.Builder alertId(String alertId)
      告警ID

      示例值:7115030004018184212

      参数:
      alertId -
      返回:
    • resourceScope

      public Alert.Builder resourceScope(String resourceScope)
      触发告警规则的会议室/服务器具体的名称

      示例值:XX层级

      参数:
      resourceScope -
      返回:
    • monitorTarget

      public Alert.Builder monitorTarget(Integer monitorTarget)
      触发告警规则的监控对象

      示例值:2

      参数:
      monitorTarget -
      返回:
    • monitorTarget

      public Alert.Builder monitorTarget(AlertMonitorTargetEnum monitorTarget)
      触发告警规则的监控对象

      示例值:2

      参数:
      monitorTarget - AlertMonitorTargetEnum
      返回:
    • alertStrategy

      public Alert.Builder alertStrategy(String alertStrategy)
      告警规则的规则描述

      示例值:连续1个周期(共1分钟),控制器电量 无效输入:'<' 50%,则告警

      参数:
      alertStrategy -
      返回:
    • alertTime

      public Alert.Builder alertTime(String alertTime)
      告警通知发生时间(unix时间,单位sec)

      示例值:1656914944

      参数:
      alertTime -
      返回:
    • alertLevel

      public Alert.Builder alertLevel(Integer alertLevel)
      告警等级:严重/警告/提醒

      示例值:2

      参数:
      alertLevel -
      返回:
    • alertLevel

      public Alert.Builder alertLevel(AlertAlertLevelEnum alertLevel)
      告警等级:严重/警告/提醒

      示例值:2

      参数:
      alertLevel - AlertAlertLevelEnum
      返回:
    • contacts

      public Alert.Builder contacts(Contact[] contacts)
      告警联系人

      示例值:

      参数:
      contacts -
      返回:
    • notifyMethods

      public Alert.Builder notifyMethods(Integer[] notifyMethods)
      通知方式

      示例值:[0,1]

      参数:
      notifyMethods -
      返回:
    • alertRule

      public Alert.Builder alertRule(String alertRule)
      规则名称

      示例值:签到板断开连接

      参数:
      alertRule -
      返回:
    • build

      public Alert build()