Skip to main content

getStat v5.4

Get a statistics counter.

Parameter​

The counter name, either as a string or as an object:

KeyTypeDescription
namestringCounter name.

Return value​

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