✨ Tracking: add printer state to ping event
That will allow us to get a general idea of actively used vs idle instances. A huge number of instances in an error state could also be an indicator of problems with a release. Would also be a cool thing to be able to add "this many printers are currently printing" to data.octoprint.org
This commit is contained in:
1 parent
6b2485363e
commit
de8c31ed51
1 file changed
+2
-1
@@ -241,7 +241,8 @@ class TrackingPlugin(
|
||||
return
|
||||
|
||||
uptime = int(monotonic_time() - self._startup_time)
|
||||
self._track("ping", octoprint_uptime=uptime)
|
||||
printer_state = self._printer.get_state_id()
|
||||
self._track("ping", octoprint_uptime=uptime, printer_state=printer_state)
|
||||
|
||||
def _track_pong(self):
|
||||
if not self._settings.get_boolean(["events", "pong"]):
|
||||
|
||||
Reference in new issue
Block a user