autotune_gauge
Automatically tune a gauge's range and color zones by providing observed samples; the field name determines whether higher is better or worse.
Instructions
Tune a buffer gauge from observed samples: sets min/max and color zones at the data's percentiles, oriented by whether higher is better (battery) or worse (temp), inferred from the field name.
Args: control_id: id of a gauge in the working buffer. samples_json: JSON array of numeric samples, e.g. [40,52,61,73,95]. field_name: Metric name for unit/direction hints (defaults to the id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| control_id | Yes | ||
| field_name | No | ||
| samples_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |