修改告警配置

更新时间:2023-06-21 07:13:11下载pdf

本文介绍修改告警配置的 API。

接口描述

修改监测对象告警配置。

接口地址

PUT: /v1.0/iot-03/si/alarm-config

请求参数

body 说明

参数名 类型 参数位置 是否必填 说明
monitor_type String true 监控指标类型:
  • energy_collect:工业能耗
  • environment:工业环境
  • vibration:工业振动
monitor_object_id String true 监测对象 ID
alarm_rules List false 告警规则集合
id Long false 主键 ID
gmt_modified Long false 更新时间

alarm_rules 说明

参数名 类型 参数位置 是否必填 说明
attr_code String true 属性编号
range_rule String true 区间规则:
  • open:(a…b)
  • closed:[a…b]
  • closedOpen:[a…b)
  • openClosed:(a…b]
  • greaterThan:(a…+∞)
  • atLeast:[a…+∞)
  • lessThan:(-∞…b)
  • atMost:(-∞…b]
  • all:(-∞…+∞)
range_value String true 区间值。取值范围:-999999.99 ~ 999999.99
alarm_config_id Long false 告警配置 ID
alarm_level Integer true 告警等级:
  • 1:低级
  • 2:高级
id Long false 主键 ID
gmt_modified Long false 更新时间

返回参数

参数名 类型 说明
result Boolean 返回结果。
  • true:修改成功
  • false:修改失败

请求示例

PUT: /v1.0/iot-03/si/alarm-config

返回示例

{ "result": true, "t": 1638238802021, "success": true }

错误码

参考 错误码