---
title: "获取设备状态日志"
method: POST
path: "/api/v1/things/device/msg/status-log/index"
tags: ["things/device/msg", "thingsDeviceMsg"]
---

# 获取设备状态日志

`POST /api/v1/things/device/msg/status-log/index`

## Request body

- DeviceMsgStatusLogIndexReq
  - `deviceName` string — 设备名
  - `page` PageInfo
    - `orders` OrderBy[] — 排序
      - `field` string — 排序的字段名
      - `sort` integer — 排序方式：1 从小到大, 2 从大到小
    - `page` integer — 页码
    - `size` integer — 每页大小
  - `productID` string — 产品id
  - `status` integer — 在线状态
  - `timeEnd` string — 时间的结束(毫秒时间戳)
  - `timeStart` string — 获取时间的开始(毫秒时间戳)

## Response `200`

A successful response.

- object
  - `code` integer
  - `data` DeviceMsgStatusLogIndexResp
    - `list` DeviceMsgStatusLogInfo[], required — 数据
      - `deviceName` string
      - `productID` string
      - `status` integer — 过滤请求ID
      - `timestamp` string — 发生时间戳(毫秒时间戳)
    - `page` integer — 页码
    - `pageSize` integer — 每页大小
    - `total` integer
  - `msg` string

---

[API](https://skmtc.net/unitedrhino/apis/things-api.md) · [All operations](https://skmtc.net/unitedrhino/apis/things-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unitedrhino/things-api/revisions/f3bdeb916389/schema)
