- Opcua
- 初始化OPC-UA Server信息,如IP、端口、标识等信息POST
- 新增OPC-UA Server信息,如IP、端口、标识等信息POST
- 更新OPC-UA Server信息,如IP、端口、标识等信息POST
- 删除OPC-UA Server信息POST
- 获取OPC-UA Server信息,如IP、端口、标识等信息POST
- 添加基于opc-ua的发布订阅监测项POST
- 将订阅监测信息更新到缓存中,不存在则添加POST
- 删除opc-ua的发布订阅监测项,可先通过query-pub-sub查询相应的监测项后再删除POST
- 修改opc-ua的发布订阅监测项,可先通过/api/v1/opc-ua/query-pub-sub查询相应的监测项后再修改POST
- 查询opc-ua的发布订阅监测项POST
- 添加指标对应的opc-ua监测点POST
- 修改指标对应的opc-ua监测点,可先通过/api/v1/opc-ua/query-communication查询相应的监测点后再修改POST
- 删除指标对应的opc-ua监测点,可先通过/api/v1/opc-ua/query-communication查询相应的监测点后再修改POST
- 查询指标对应的opc-ua监测点,若参数为空,则查询该租户下所有的监测点信息POST
- 查询指标对应的opc-ua监测点,用于项目配置平台显示POST
- 初始化指标对应的opc-ua监测点,根据输入的监测点数据,删除系统中多余的监测点,如果输入的监测点已存在则更新,不存在则新增。POST
- 初始化指标对应的opc-ua监测点,如果存在则全部删除后再添加POST
- 导出opc-ua配置信息, 包含设备、指标、OPC节点等配置,将配置信息转换成excel并下载POST
- 导入opcua配置,将配置项按照模板文件格式整理后导入到系统中POST
- 将OpcUaPubSub中所有节点添加订阅POST
- 添加订阅,连接opcua服务地址并添加节点订阅,配置文件中的PublishingInterval可设置订阅频率,不设置则为0POST
- 读取节点数据,连接opcua服务地址读取指定的节点数据POST
- 往节点写入数据,连接opcua服务地址并将数据写入到节点中,可通过read-node查看是否写入成功POST
- 将iot服务的心跳写入到opcua服务端,Nodevalue可为空,默认值为当前时刻的秒数POST
- 往节点写入数据-批量下发POST
- 同步opc server遥测数据,将同一租户下同步策略名称一致的批量同步到系统中POST
- 查询opcua服务心跳是否正常,判断结果存储在缓存中。POST
- 定时监测opcua服务心跳数据是否正常并将判断结果保存到缓存中,结果通过接口/api/v1/opc-ua/opc-heart-beat接口查看POST
- Telemetry
- Asset
- Auth
- ControlCmd
- Data
- 清洗数据查询
- 获取清洗数据
- 查询清洗数据
- 更新清洗数据信息 注:升级后改为调用OnlineProcessedDatas/Save接口
- 添加清洗数据信息 Add online processed data
- 保存清洗数据
- 修改最新的Tag
- 更新设备的数据清洗标签
- 添加或更新清洗数据信息-目前仅提供给清洗算法使用,升级后改为调用Save接口
- 修改清洗数据-目前仅提供给清洗算法使用,升级后改为调用Save接口
- 仿真在线数据
- 仿真在线数据
- [内部接口]保存实测数据
- [内部接口]保存实测数据
- [内部接口]从Redis中获取最新的实测数据
- [内部接口]获取reids中存储的opc相关表信息
- [内部接口]表名OpcUaPubSubNotify、OpcUaPubSub、OpcUaCommunication添加redis
- [内部接口]保存清洗数据到iot 注:此接口为升级后的 保存清洗数据接口
- 缓存清洗数据和源数据
- Device
- DeviceMaintenance
- HistoricalDataSearch
- Integration
- IotGroup
- Mqtt
- NetRequest
- 获取多个设备指标详情
- 获取租户下的所有的指标数据
- 批量增加设备指标信息 batch add device indicators
- 通过指标编码列表(indicator)批量获取指标信息 Get indicator by code
- 初始化设备指标信息,先删除旧的,重新批量新增 init device indicators,delete old data,add new data
- 根据模型点位id获取模型点位的详细信息
- 根据TemplateId列表删除资产/设备与模型点位之间的映射关系 Delete mapping relation between asset/device and model point by TemplateIds
- 添加资产/设备与模型点位之间的映射关系 Add mapping relation between asset/device and model point
- /api/app/net-request/model-boundary-config-list/{templateId}
- /api/app/net-request/model-boundary-config
- 获取指标点位与模型数据映射数据
- 根据Id获取模型点位信息
- 添加模型点位数据类型与设备指标之间的映射关系 Add mapping relation between model point data type and device indicator
- 更新模型点位数据类型与设备指标之间的映射关系 Update mapping relations between model point data type and device indicator
- 添加模型点位数据类型与设备指标之间的映射关系 Add mapping relation between model point data type and device indicator
- TelemetryMockData
通过设备、指标、检索实测指标与模型输出点位映射关系以及实测指标与模型边界点位映射关系
POST
/api/v2/iot/integration/search/get-inout-point-map-info
Integration
使用场景:查询指定方案库中指定的设备指标列表的实测指标与模型输出点位映射关系以及实测指标与模型边界点位映射关系, 和接口/api/v2/iot/integration/get-inout-point-map-info接口的区别在于有传参筛选条件
输入:方案类库Id、设备指标列表
输出:实测指标与模型输出点位映射关系、实测指标与模型边界点位映射关系
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
libraryId
string <uuid>
方案类库Id
deviceIndicators
array[object (DeviceIndicatorInput) {2}] | null
设备下的指标
deviceCode
string
必需
>= 1 字符
indicator
string
指标名称
>= 1 字符
示例
{
"libraryId": "c3f853d9-e33a-8f19-198b-4c5c1103e94b",
"deviceIndicators": [
{
"deviceCode": "测试水厂出厂",
"indicator": "ceshi_1_shuichang_flow"
}
]
}
示例代码
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/iot-service/api/v2/iot/integration/search/get-inout-point-map-info' \
--header 'Content-Type: application/json' \
--data-raw '{
"libraryId": "c3f853d9-e33a-8f19-198b-4c5c1103e94b",
"deviceIndicators": [
{
"deviceCode": "测试水厂出厂",
"indicator": "ceshi_1_shuichang_flow"
}
]
}'
返回响应
🟢200成功
text/plain
Body
pointMaps
array[object (PointDataTypeInfo) {11}] | null
可选
id
string <uuid> | null
主键ID
tenantId
string <uuid> | null
租户ID
modelPointId
string <uuid>
可选
modelComponent
string | null
模型水质项
deviceIndicatorId
string <uuid>
指标表id
modelDataType
string | null
可选
templateId
string <uuid>
模板方案id
modelId
string | null
可选
modelPointType
string | null
可选
indicator
string | null
指标名称
deviceName
string | null
设备名称
boundaryMaps
array[object (InPointMap) {8}] | null
可选
id
string <uuid>
主键ID
modelId
string | null
模型ID
modelPointType
string | null
模型点位类型
boundaryShowName
string | null
边界标识
dataSource
string | null
数据来源
indicator
string | null
指标名称
deviceName
string | null
设备名称
templateId
string <uuid>
模板方案Id
示例
{
"pointMaps": [
{
"id": "1833c596-4443-ad36-b67f-5112fe4ec9b3",
"tenantId": "8ab7163f-de69-2554-37b7-ec4c6b7d35b7",
"modelPointId": "eb11c569-6719-a788-42bd-3a1e921c479e",
"modelComponent": "COD",
"deviceIndicatorId": "f34fd8ee-3031-710d-0c8b-a71f2f8eba02",
"modelDataType": "DblValue",
"templateId": "f910bad2-f335-4457-44fb-d649d7c55ddc",
"modelId": "19731",
"modelPointType": "Junction",
"indicator": "ceshi_1_shuichang_flow",
"deviceName": "测试水厂出厂"
}
],
"boundaryMaps": [
{
"id": "5a8a24d8-accb-8264-7256-f8e3e386730e",
"modelId": "19731",
"modelPointType": "Junction",
"boundaryShowName": "节点流量",
"dataSource": "Measure",
"indicator": "ceshi_1_shuichang_flow",
"deviceName": "测试水厂出厂",
"templateId": "efa05f08-2101-54c0-1708-62b1bc425889"
}
]
}