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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"thing_id": "<thing_id>",
"from_ts": "<from_ts>",
"to_ts": "<to_ts>"
},
"name": "get_thing_uptime"
}
}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. |