listStats v5.4
List statistics counters.
Parameter
| Key | Type | Description |
|---|---|---|
| prefix | string | Optional. Only list counters whose names start with this prefix. |
Return value
An array of counter objects, ordered by name:
| Key | Type | Description |
|---|---|---|
| name | string | Counter name. |
| total | number | Count since the printer started. |
| today | number | Count today. |
Example
listStats {"prefix": "printer.Colorize.labels."}
Returns:
OK [{"name":"printer.Colorize.labels.printed","total":1520,"today":312},{"name":"printer.Colorize.labels.skipped.lateTrigger","total":2,"today":0}]