Idm Get History
idm_get_historyQuery recorded history for one device parameter from an ISOTEL IDM gateway, choosing regular, scaled, averaged, or aggregate output; inactive devices are supported.
Instructions
Read recorded samples of one parameter, aggregated by the gateway.
Four modes, chosen by which arguments are set:
regular (default) - max_points samples from the span.
scale - exactly scale points spanning the span, each with m records.
average - scale plus average: interval duration in SECONDS; adds n, sd.
calc - one aggregate over the whole record set, e.g. "avg".
Also works for inactive devices: the gateway keeps their records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calc | No | aggregate function over the record set, e.g. "avg", "sum". | |
| scale | No | number of evenly spaced points across the span. | |
| device | Yes | root, full name or unambiguous substring (inactive allowed). | |
| average | No | interval duration in seconds; requires `scale`. | |
| time_to | No | UTC timestamp, or "last"/"end". | last |
| parameter | Yes | parameter path, e.g. "ec/E". | |
| time_from | No | UTC timestamp, or "first"/"start" for the oldest record. | |
| max_points | No | regular mode - number of samples (gateway default 100). With only time_from set this takes the first N after it; with time_to set, the last N before it. Exclusive with `scale`. | |
| interpolate | No | with `scale`, fill intervals that hold no records. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||