- 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/v1/historical-data/search
HistoricalDataSearch
IsSearchSimul
为false时,则仅查询实测数据,返回值中ModelTsData
将为null;如果需要查询模拟数据,则参数中LibraryId必填。
设备指标的模拟数据是指在做模型点位映射时,设备指标绑定的模型输出点位的模拟结果。如果没有模型结果绑定到该查询指标,则返回值中
ModelTsData
将为null。请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
array of:
isSearchMeasure
boolean
必需
isSearchSimul
boolean
必需
libraryId
string <uuid> | null
可选
/api/v1/scenario-manager/library/list
deviceCode
string | null
可选
indicator
string
必需
>= 1 字符
startTs
string <date-time>
必需
endTs
string <date-time>
必需
orderBy
string | null
可选
sample
string | null
可选
interval
integer <int32>
可选
时间的分钟数对5取余为0
的记录示例
[
{
"isSearchMeasure": true,
"isSearchSimul": true,
"libraryId": "6780430a-772c-4fd6-a7b1-5dc852e6898f",
"deviceCode": "string",
"indicator": "string",
"startTs": "2019-08-24T14:15:22Z",
"endTs": "2019-08-24T14:15:22Z",
"orderBy": "string",
"sample": "string",
"interval": 0
}
]
示例代码
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/v1/historical-data/search' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"isSearchMeasure": true,
"isSearchSimul": true,
"libraryId": "6780430a-772c-4fd6-a7b1-5dc852e6898f",
"deviceCode": "string",
"indicator": "string",
"startTs": "2019-08-24T14:15:22Z",
"endTs": "2019-08-24T14:15:22Z",
"orderBy": "string",
"sample": "string",
"interval": 0
}
]'
返回响应
🟢200成功
text/plain
Body
indicators
array[object (SearchIndicator) {8}] | null
查询的指标
isSearchMeasure
boolean
是否查询实测数据
isSearchSimul
boolean
是否查询模拟数据
indicator
string | null
查询到设备指标
deviceCode
string | null
查询的设备名称
libraryId
string <uuid> | null
可选
label
string | null
指标标签
showName
string | null
指标的中文显示名
unit
string | null
指标单位
measureTsData
array[object (TimeseriesBatchForV3Output) {4}] | null
实测历史数据
t
array[string] | null
可选
v
array | null
可选
deviceCode
string | null
设备编码、设备名称
indicator
string | null
指标编码
modelTsData
array[object (ModelResultOutput) {5}] | null
模拟历史数据
t
array[string] | null
可选
v
array[number <double>] | null
可选
deviceCode
string | null
设备编码
indicator
string | null
指标
modelFeatureId
string | null
模型中的点位Id
示例
{
"indicators": [
{
"isSearchMeasure": true,
"isSearchSimul": true,
"indicator": "string",
"deviceCode": "string",
"libraryId": "6780430a-772c-4fd6-a7b1-5dc852e6898f",
"label": "string",
"showName": "string",
"unit": "string"
}
],
"measureTsData": [
{
"t": [
"string"
],
"v": [
null
],
"deviceCode": "string",
"indicator": "string"
}
],
"modelTsData": [
{
"t": [
"string"
],
"v": [
0
],
"deviceCode": "string",
"indicator": "string",
"modelFeatureId": "string"
}
]
}