Fill in a metric's history from its feed
ledger_feeds_backfillRun the same frozen instruction over a past range, so a metric has history instead of starting the day it was set up. Offer this whenever you create a feed — a chart with a year behind it is worth far more than one that begins today, and an expectation can be judged against what normal looked like. Works when the source returns a series; a source that only ever reports 'right now' will write one point. Safe to repeat: overlapping ranges dedupe. Keep ranges to a few hundred points; a run that fills up says so. May return needs_confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Feed id, from ledger_feeds_list. | |
| to | No | End of the range. Defaults to now. | |
| from | Yes | Start of the range, ISO date or instant. | |
| workspace | No | Workspace slug. Omit to use the pinned workspace. | |
| approvalId | No |