query_metric
Compute a metric over a specified month range, optionally segmented by a dimension. Returns a result ID to verify numeric claims before reporting them.
Instructions
Compute a metric over a range of months, optionally cut by one dimension.
Months are 'YYYY-MM' and both ends are inclusive. dimension must be one
of the values listed for the metric; anything else is refused rather than
approximated.
The reply carries a result_id. Pass it to verify_answer together with
whatever you are about to say, and say nothing whose numbers it rejects.
Ratios come back with their numerator and denominator so a wider period can
be rolled up by summing those, never by averaging the rates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dimension | No | ||
| end_month | Yes | ||
| metric_id | Yes | ||
| start_month | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |