Skip to content

Status changes of a device (read)​

GET
/api/v1/devices/{id}/status

The list starts with the newest change and contains at most 1000 changes. Then it gives the change of each register that was active at start. The default range is the last 90 days. The register @connection shows the connection.

Authorizations​

or
session
Type
API Key (cookie: pvmon_session)
or
token

API token pvm_<id>_<secret>.

Type
HTTP (bearer)

Parameters​

Path Parameters

id*
Type
string
Required

Query Parameters

start

RFC 3339 time or local date.

Type
string
end

RFC 3339 time or local date (inclusive).

Type
string

Responses​

The changes.

application/json
JSON
{
  
"events": [
  
  
{
  
  
  
"register": "string",
  
  
  
"at": "2024-01-01T00:00:00Z",
  
  
  
"code": 0,
  
  
  
"level": "string",
  
  
  
"texts": [
  
  
  
  
{
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Samples​

Version 0.4.0-66c93c2. MIT license.