Get historical values
get_historyRetrieve historical values for specified elements over a time range with optional aggregation. Supports RFC 3339 timestamps, relative durations, and bucket intervals for server-side aggregation.
Instructions
Historical values over a time range with optional server-side aggregation. Times accept RFC 3339, relative durations ('1h', 'last 30m'), 'now', 'today', or 'yesterday'. For long ranges use aggregation='avg'|'min'|'max'|'count' with a bucket like '5m' or '1h'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | No | Bucket interval, e.g. '30s', '5m', '1h'. | |
| endTime | No | End of range. Default 'now'. | |
| maxDepth | No | Composition depth (default 1). | |
| startTime | Yes | Start of range. RFC 3339 or relative duration. | |
| elementIds | Yes | Element IDs. | |
| aggregation | No | How to aggregate (default 'raw'). |