- Base
- Cache
- CodeConfig
- Data
- DosingLog
- ImportExport
- ModelConfig
- WestModelParameter
- DataCleanEndTrigger
- Alarm
更新报警配置信息
POST
/api/Alarm/UpdateAlarmConfigs
Alarm
报警配置、报警阈值。
修改报警配置中阈值。
先调用GetAllAlarmConfigs接口获得报警配置信息,修改后传入此接口保存。
报警配置列表
请求参数
Body 参数application/json
array of:
nodeCode
string
必需
>= 1 字符
indicator
string
指标编码,如COD
>= 1 字符
grade
integer <int32>
必需
maxValue
number <double>
必需
minValue
number <double>
必需
alarmType
enum<integer> <int32>
必需
枚举值:
01234
nodeType
enum<integer> <int32>
必需
枚举值:
012
unit
string
必需
>= 1 字符
message
string
必需
>= 1 字符
id
string <uuid>
必需
示例
[
{
"nodeCode": "HY_line1_CD_QSET",
"indicator": "1线碳源实际投加速率",
"grade": 1,
"maxValue": 1000,
"minValue": 0,
"alarmType": 1,
"nodeType": 2,
"unit": "L/h",
"message": "碳源投加超过1000L/h,请检查,是否需要人工控制",
"id": "3a134c4b-e807-e2ba-02b2-4a5cd2b21f38"
},
{
"nodeCode": "HY_line2_CD_QSET",
"indicator": "2线碳源实际投加速率",
"grade": 1,
"maxValue": 1000,
"minValue": 0,
"alarmType": 1,
"nodeType": 2,
"unit": "L/h",
"message": "碳源投加超过1000L/h,请检查,是否需要人工控制",
"id": "3a134c4b-e807-1457-6026-0a8f6e061209"
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://online-products.dhichina.cn/gateway/wwtp-paas-service/api/Alarm/UpdateAlarmConfigs' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"nodeCode": "HY_line1_CD_QSET",
"indicator": "1线碳源实际投加速率",
"grade": 1,
"maxValue": 1000,
"minValue": 0,
"alarmType": 1,
"nodeType": 2,
"unit": "L/h",
"message": "碳源投加超过1000L/h,请检查,是否需要人工控制",
"id": "3a134c4b-e807-e2ba-02b2-4a5cd2b21f38"
},
{
"nodeCode": "HY_line2_CD_QSET",
"indicator": "2线碳源实际投加速率",
"grade": 1,
"maxValue": 1000,
"minValue": 0,
"alarmType": 1,
"nodeType": 2,
"unit": "L/h",
"message": "碳源投加超过1000L/h,请检查,是否需要人工控制",
"id": "3a134c4b-e807-1457-6026-0a8f6e061209"
}
]'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"status": true,
"code": "000000",
"message": null,
"traceId": null
}