Skip to main content

getTrigger

Get counter information for a trigger.

Parameter

KeyTypeDescription
idstringTrigger ID. If omitted, the trigger of printer is used.
printerstringPrinter ID. Used when id is omitted; required if more than one printer is available.

Return value

KeyTypeDescription
edgeCounternumberTotal number of trigger edge events.
activeCounternumberNumber of times the trigger became active.
bounceCounternumberNumber of debounced (filtered) edge events.
activebooleanCurrent active state of the trigger.

Example

getTrigger {"id": "trigger1"}