Stat
A metric tile: label, value, change against a previous period, note.
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-stat> · RayStat
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
label | label | string | What is measured. | |
value | value | string | The figure, already formatted. | |
diff | diff | number | Change (positive is shown as good, in green; see inverse). | |
diffUnit | diff-unit | string | % | Unit of diff. |
note | note | string | A line under the value (compared to…). | |
inverse | inverse reflects | boolean | Lower is better (errors, latency): negative diffs are green. | |
plain | plain reflects | boolean | Without the card around. |
| Slot | Description |
|---|---|
icon | Icon next to the label. |
| (default) | Extra content (e.g. a ray-progress). |
Texts
What it writes itself, in English; setStrings() translates them (Getting started: Languages).
| Key | English |
|---|---|
stat.up | Up {value} |
stat.down | Down {value} |
stat.flat | No change {value} |