一类设备条件选择下拉菜单
开发中GET
/api/v1/device_config/metrics/condition/menu请求参数
Query 参数
device_config_id
string
设备配置id
示例值:
a54d83e7-2858-8331-3783-f936c4198a66
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
array [object {2}]
必需
data_source_type
string
数据源类型
telemetry,attribute,command
options
array [object {4}]
必需
示例
{
"code": 200,
"message": "success",
"data": [
{
"data_source_type": "telemetry",
"options": [
{
"key": "temperature",
"label": "温度",
"data_type": null,
"unit": "℃"
}
]
},
{
"data_source_type": "attributes",
"options": [
{
"key": "version",
"label": "版本号",
"data_type": null,
"unit": ""
},
{
"key": "status",
"label": "模式",
"data_type": null,
"unit": ""
}
]
},
{
"data_source_type": "event",
"options": [
{
"key": "reset",
"label": "重启",
"data_type": "string",
"unit": null
}
]
}
]
}
最后修改时间: 8 个月前