Human-friendly label for display (e.g. "Diamonds mined").
Optionalicon?: stringOptional icon hint for the client (e.g. a Minecraft item id like "minecraft:diamond", or a lucide icon name). Absent if not provided.
Stable machine key for the metric (e.g. "diamonds_mined").
Optional unit shown next to the value (e.g. "blocks", "ms"). May be empty.
Current value. Counters accumulate; gauges reflect the latest set value.
A single named metric reported by a plugin (a counter or a gauge).