Update Channel for Setting Measurement Points¶
更新写值通道
请求格式¶
PUT http://{apigw-address}/edge-service/v1/measurepoint-channel?action=update&orgId={}&setMeasurepointChannelId={}
请求参数(URI)¶
名称 | 位置 (Path/Query) | 是否必须 | 数据类型 | 描述 |
---|---|---|---|---|
setMeasurepointChannelId | Path | True | String | 写入测点值通道ID |
orgId | Query | 是 | String | 资产所属的组织ID。 如何获取orgId信息>> |
action | Query | 是 | String | update |
请求参数(Body)¶
名称 | 是否必须 | 数据类型 | 描述 |
---|---|---|---|
setMeasurepointChannelId | True | String | 设定测点值使用的通道ID。必须以 DATASVC.SET. 开头。只支持大小写英文字母、数字、下划线(_)、点(.)、短横线(-),长度最大为60字节。 |
desc | False | String | 通道的描述 |
响应参数¶
名称 | 数据类型 | 描述 |
---|---|---|
status | Int | 响应状态码 |
msg | String | 返回消息,用于描述响应结果 |
submsg | String | 返回子消息,用于描述响应结果 |
data | Object | 响应数据object,结构见下表 |
名称 | 数据类型 | 描述 |
---|---|---|
setMeasurepointChannelId | String | 写入测点值使用的通道ID |
desc | String | 通道的描述 |
输入输出示例¶
请求示例¶
PUT http://{apigw-address}/edge-service/v1/measurepoint-channel?action=update&orgId={}&setMeasurepointChannelId={}
{
"setMeasurepointChannelId":"DATASVC.SET.aaa",
"desc":"aaaaaaa"
}
响应示例¶
{
"status":0,
"msg":"Success",
"submsg":null,
"data":{
"setMeasurepointChannelId":"DATASVC.SET.aaa",
"desc":"aaaaaa"
}
}