更新时间:2023-06-15 06:02:15
本文介绍告警配置分页列表的 API。
监测对象告警配置分页列表。
GET: /v1.0/iot-03/si/alarm-config/page
| 参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
|---|---|---|---|---|
| monitor_type | String | query | false | 监控指标类型:
|
| monitor_object_id | String | query | false | 告警对象编号 |
| page_no | Integer | query | false | 分页页码 |
| page_size | Integer | query | false | 分页大小。最大值为 100 |
| 参数名 | 类型 | 说明 |
|---|---|---|
| result | Page | 返回结果 |
result 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| total | Long | 总数 |
| list | List |
返回数据集合 |
| has_more | Boolean | 是否还有下一页 |
list 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| alarm_rules | List |
告警规则集合 |
| monitor_object_id | String | 监测对象 ID |
| monitor_object_name | String | 告警对象名称 |
| id | Long | 主键 ID |
| monitor_type_name | String | 监控指标类型名称 |
| monitor_type | String | 监控指标类型:
|
| gmt_modified | Long | 更新时间 |
alarm_rules 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| attr_code | String | 属性编号 |
| range_rule | String | 区间规则:
|
| range_value | String | 区间值 |
| alarm_config_id | Long | 告警配置id |
| alarm_level | Integer | 告警等级:
|
| config_level | Integer | 配置等级:
|
| id | Long | 主键id |
| gmt_modified | Long | 更新时间 |
GET: /v1.0/iot-03/si/alarm-config/page
{
"monitor_type": "environment",
"monitor_object_id": "11",
"alarm_rules": [
{
"attr_code": "co21",
"rang_rule": "greaterThan",
"rang_value": "101",
"alarm_level": 2
},
{
"attr_code": "o21",
"rang_rule": "greaterThan",
"rang_value": "111",
"alarm_level": 21
}
]
}
{
"result": {
"list": [
{
"monitor_type_name": "工业环境",
"gmt_modified": 1638238787812,
"monitor_object_id": "11",
"id": "146550581080852****",
"monitor_type": "environment"
}
],
"total": 1,
"has_more": false
},
"t": 1638238794169,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈