Metric trend
get_metric_trendCompute the least-squares trend for a daily health metric series. Returns slope per day, endpoints, and spread to track changes over a specified period.
Instructions
Least-squares trend for one daily series: slope per day, endpoints, spread.
series is a name from list_metric_series. days selects the newest N days
THAT HAVE DATA, not the last N calendar days — compare n_days with
span_days to see whether the history is dense or sparse. since /
until ("YYYY-MM-DD") fit a calendar window instead.
Returns arithmetic only. slope_per_day is in the series' own unit per day and
carries no threshold, band or verdict; fewer than 3 days returns a null slope
with a reason rather than a number fitted to noise.
Carries a coverage block over the days the arithmetic used: quote
coverage.days_covered and coverage.span_days beside any number here.
coverage.window_satisfied: false alone does NOT mean a short history — it is
also false when older days exist beyond the window; coverage.more_available
tells the two apart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| fresh | No | ||
| since | No | ||
| until | No | ||
| series | Yes | ||
| partner | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||