- 设备管理
- 告警中心
- 通知中心
- 数据转发
- 规则引擎
- 系统管理
- 登录
- 注册
- 用户
- 分组
- 菜单
- 角色
- 字典
- 文件
- 系统
- 分组
- 应用管理
- SCADA组态服务
- 现场管理
- 设备任务
编辑设备告警配置
POST
/api/alarm/config/modify
请求参数
Header 参数
Authentication
string
必需
Body 参数application/json
warning
array [object {13}]
必需
alarmType
string
可选
autoDone
boolean
可选
devCustomWarn
boolean
可选
isError
string
可选
threshold
integer
可选
triggerType
integer
可选
warningDlimit
null
可选
warningElimit
null
可选
warningLevel
integer
可选
warningMode
integer
可选
warningType
integer
可选
warningUlimit
integer
可选
name
string
变量名
id
string
必需
enable
boolean
可选
示例
{
"id": "8c2a056980e5429bb684783edcb576ae",
"warning": [
{
"alarmType": "湿度越上限",
"autoDone": false,
"devCustomWarn": true,
"isError": "0",
"threshold": 22,
"triggerType": 1,
"warningDlimit": null,
"warningElimit": null,
"warningLevel": 1,
"warningMode": 1,
"warningType": 1,
"warningUlimit": 22,
"name": "变量名"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'ssiot.cc/api/alarm/config/modify' \
--header 'Authentication;' \
--header 'Authentication;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "8c2a056980e5429bb684783edcb576ae",
"warning": [
{
"alarmType": "湿度越上限",
"autoDone": false,
"devCustomWarn": true,
"isError": "0",
"threshold": 22,
"triggerType": 1,
"warningDlimit": null,
"warningElimit": null,
"warningLevel": 1,
"warningMode": 1,
"warningType": 1,
"warningUlimit": 22,
"name": "变量名"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-03-31 07:34:43