getStat v5.4
Get a statistics counter.
Parameter
The counter name, either as a string or as an object:
| Key | Type | Description |
|---|---|---|
| name | string | Counter name. |
Return value
| Key | Type | Description |
|---|---|---|
| name | string | Counter name. |
| total | number | Count since the printer started. |
| today | number | Count today. |
The request fails if there is no counter with the given name.
Example
getStat "printer.Colorize.triggers.ignored.total"
Returns:
OK {"name":"printer.Colorize.triggers.ignored.total","total":14,"today":3}