1. hapid接口说明

1.1. 文档说明

Hapid服务提供了Indass数据分析结果HTTP API

1.2. 修订记录

日期 文档版本 修订内容 修改人
2020-11-12 v1.0 初版Hapid接口文档 hdy

1.3. 分页查询数据

请求地址:

属性
URL /api/v1/:block_id/getPage
Method get
Content-Type multipart/form-data

请求参数:

参数名 说明 类型 是否必传 示例
project_id indass的项目id int 1001
object_id 设备id int 1001
start_time 起始时间 datetime 2020-08-21 09:17:55
end_time 结束时间 datetime 2020-08-21 09:17:55
page_index 页码 int 否,默认1 1
page_size 页大小 int 否,默认10 2

响应参数:

{
    "code": 200,
    "msg": "",
    "result": {
        "data": [
            {
                "time": "2020-09-15 15:45:38",
                "value": {
                    "Stability_Accelerate_By_FV": "{'Y01-1': nan, 'Y02-1': nan, 'Y03-1': nan, 'Y04-1': nan}",
                    "Stability_Gradient_By_FV": "{'Y01-1': nan, 'Y02-1': nan, 'Y03-1': nan, 'Y04-1': nan}",
                    "block_id": "index",
                    "class_id": "Stability",
                    "created": "2020-09-15 15:45:38",
                    "mapping_id": "1005",
                    "object_id": "1049",
                    "project_id": "32"
                }
            },
            {
                "time": "2020-09-15 15:45:38",
                "value": {
                    "Stability_Accelerate_By_FV": "{'Y01-1': 0.0, 'Y02-1': 0.0, 'Y03-1': -0.0, 'Y04-1': 0.0}",
                    "Stability_Change": -87.19,
                    "Stability_Change_Accelerate": -0,
                    "Stability_Change_Rate": -0.68,
                    "Stability_Change_Speed": -0.48,
                    "Stability_Gradient_By_FV": "{'Y01-1': 0.0, 'Y02-1': 0.0, 'Y03-1': -0.48, 'Y04-1': 0.0}",
                    "Stability_Value": 41.14,
                    "block_id": "index",
                    "class_id": "Stability",
                    "created": "2020-09-15 15:45:38",
                    "mapping_id": "1005",
                    "object_id": "1050",
                    "project_id": "32"
                }
            }
        ],
        "page_index": 1,
        "page_size": 2,
        "total_pages": 17,
        "total_records": 34
    }
}

1.4. 获取最新指定数量数据

请求地址:

属性
URL /api/v1/:block_id/getLatest
Method get
Content-Type multipart/form-data

请求参数:

参数名 说明 类型 是否必传 示例
items 条数 int 否,默认10 2
project_id indass的项目id int 1001
object_id 设备id int 1001

响应参数:

{
    "code": 200,
    "msg": "",
    "result": {
        "data": [
            {
                "time": "2020-09-15 15:45:38",
                "value": {
                    "Stability_Accelerate_By_FV": "{'Y01-1': nan, 'Y02-1': nan, 'Y03-1': nan, 'Y04-1': nan}",
                    "Stability_Gradient_By_FV": "{'Y01-1': nan, 'Y02-1': nan, 'Y03-1': nan, 'Y04-1': nan}",
                    "block_id": "index",
                    "class_id": "Stability",
                    "created": "2020-09-15 15:45:38",
                    "mapping_id": "1005",
                    "object_id": "1049",
                    "project_id": "32"
                }
            },
            {
                "time": "2020-09-15 15:45:38",
                "value": {
                    "Stability_Accelerate_By_FV": "{'Y01-1': 0.0, 'Y02-1': 0.0, 'Y03-1': -0.0, 'Y04-1': 0.0}",
                    "Stability_Change": -87.19,
                    "Stability_Change_Accelerate": -0,
                    "Stability_Change_Rate": -0.68,
                    "Stability_Change_Speed": -0.48,
                    "Stability_Gradient_By_FV": "{'Y01-1': 0.0, 'Y02-1': 0.0, 'Y03-1': -0.48, 'Y04-1': 0.0}",
                    "Stability_Value": 41.14,
                    "block_id": "index",
                    "class_id": "Stability",
                    "created": "2020-09-15 15:45:38",
                    "mapping_id": "1005",
                    "object_id": "1050",
                    "project_id": "32"
                }
            }
        ],
       "len": 2
    }
}
© Mixlinker all right reserved,powered by Gitbook文件修订时间: 2021-03-05 16:09:24

results matching ""

    No results matching ""