广联达筑联:工业级物联网云平台 广联达筑联:工业级物联网云平台
首页
开发侧文档
用户侧文档
首页
开发侧文档
用户侧文档
  • 平台介绍

  • 物联网平台

  • 边缘计算平台

  • 应用硬件开发平台

  • API文档

    • 边缘

    • 模型

    • 设备

    • 数据

      • 修改数据订阅范围
      • 上报一条新的设备属性
      • 批量获取设备在线状态
      • 批量获取设备镜像
      • 更新设备在线状态
      • 查询时间段内的属性上报历史数据
        • 基本信息
      • 通过设备ID获取设备镜像
      • 通过设备ID获取设备在线状态
    • 天气

    • 项目

  • 开发侧文档
  • API文档
  • 数据
2021-11-29

查询时间段内的属性上报历史数据

# 查询时间段内的属性上报历史数据

# 基本信息

API Path /giot/v2/data/{deviceId}/raw_data

请求协议 HTTP

请求方法 GET

Query参数:

参数名 说明 必填 类型 限制 示例
productCode 产品编码 是 [string]
start 起始时间戳 否 [int]
end 终止时间戳 否 [int]
code 属性编码 否 [string]
limit 返回的结果数量 否 [int] 10

Rest参数:

参数名 说明 必填 类型 值可能性 限制 示例
deviceId 设备Id 是 [string]

响应内容:

返回结果 Json Array

参数名 说明 必填 类型 值可能性 限制 示例
code 属性编码 否 [string]
createdTime 创建时间 否 [string]
dataType 数据类型 否 [int]
deviceId 设备ID 否 [string]
id 属性ID 否 [string]
modelId 模型ID 否 [string]
projectId 项目ID 否 [string]
tenantId 模型ID 否 [string]
timestamp 时间戳 否 [string]
updatedTime 更新时间 否 [string]
value 属性值 否 [object]

成功示例:

[
    {
        "id": "8590d8ce67db4a75abe628afd8220842@#version@#1626846935000", //设备id @# 属性code @# 时间戳
        "tenantId": null, //租户ID
        "projectId": "487050709635584", //项目ID
        "modelId": null, //模型ID
        "deviceId": "8590d8ce67db4a75abe628afd8220842", //设备ID
        "dataType": 4, //数据类型  1:整型 2:浮点型 3:布尔型 4:文本型 5:JSON格式 6:枚举类
        "code": "version", //属性编码
        "value": "1.0.1", //属性值
        "timestamp": 1626846935000, //上报时间戳
        "createdTime": 1626846935000, //创建时间
        "updatedTime": null //更新时间
    }
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

失败示例:

{
    "code": 500,
    "message": "xxxxxxxxxx",
    "key": null
}
1
2
3
4
5
上次更新: 2021-12-01 16:48:01

← 更新设备在线状态 通过设备ID获取设备镜像→

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式