Skip to main content

listStats v5.4

List statistics counters.

Parameter​

KeyTypeDescription
prefixstringOptional. Only list counters whose names start with this prefix.

Return value​

An array of counter objects, ordered by name:

KeyTypeDescription
namestringCounter name.
totalnumberCount since the printer started.
todaynumberCount 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}]