Get historical metric series
baseline_get_historyFetch historical reporting data for a device, including pressure, zone, flow, moisture, and temperature metrics. Returns summary statistics and per-bucket data points for the specified date range.
Instructions
Modern reporting time-series for a single device. Kinds: pressure, zone, flow, moisture, temperature. This is the source for historical PRESSURE and for per-zone/flow/moisture/temperature trends. deviceSn is the device's reporting serial (from baseline_list_devices: serialNumber for sensors/meters, decoderSN for zones). Dates accept ISO-8601 or YYYY-MM-DD. Returns max/min/average/median plus per-bucket points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Metric kind. | |
| deviceSn | Yes | Device reporting serial (serialNumber, or decoderSN for a zone). | |
| from | Yes | Start date (ISO-8601 or YYYY-MM-DD). | |
| to | Yes | End date (ISO-8601 or YYYY-MM-DD). | |
| controllerId | No | Controller id (from baseline_list_controllers). Optional when the account has exactly one accessible controller or BASELINE_CONTROLLER_ID is set; otherwise required. | |
| granularity | No | Bucket size (default day). |