Get Thing Uptime
get_thing_uptimeRetrieve a thing's connect/disconnect timeline and total uptime over a specified time range. Track device connectivity history to analyze uptime patterns.
Instructions
Get the connect/disconnect timeline and total uptime for a single thing within a time range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_ts | Yes | End of range as Unix timestamp (seconds). | |
| from_ts | Yes | Start of range as Unix timestamp (seconds). Max range is 90 days. | |
| thing_id | Yes | UUID of the thing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | No | Connect/disconnect events in chronological order. | |
| uptime_seconds | Yes | Total connected seconds in the requested time range. |