Align multiple signals
align_seriesResample multiple health signals onto a common time grid to compare them side by side without manual timestamp matching.
Instructions
Resample 2+ signals onto one shared time grid for side-by-side comparison.
Takes a JSON array of signal specs and returns a single aligned table — one row per time bucket, one column per signal — so signals can be compared without hand-matching timestamps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agg | No | default bucket aggregation ('mean','median','sum','min','max', 'first','last','count'); a spec's own "agg" overrides it. | mean |
| join | No | 'outer' (every bucket any signal has, missing entries null) or 'inner' (only buckets every signal shares). | outer |
| user | No | which person; defaults to the primary user. | |
| limit | No | max rows returned (the most recent are kept if exceeded). | |
| since | No | ||
| until | No | ||
| resample | No | 'day' | 'week' | 'month' bucket granularity. | day |
| series_json | Yes | JSON array of specs, each {"source","name"} with optional "label" and per-series "agg". Example: '[{"source":"metric","name":"weight_kg"}, {"source":"lab","name":"a1c_percent","agg":"last"}]' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||