From 1480dcf6e0657e5013a67e64e9315b9cb8108315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 5 Nov 2020 15:41:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Document=20resends=20and=20plugi?= =?UTF-8?q?ns=20in=20push=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/datamodel.rst | 21 +++++++++++++++++++++ docs/api/push.rst | 9 +++++++++ 2 files changed, 30 insertions(+) diff --git a/docs/api/datamodel.rst b/docs/api/datamodel.rst index 4f9803e73..346225081 100644 --- a/docs/api/datamodel.rst +++ b/docs/api/datamodel.rst @@ -145,6 +145,27 @@ Temperature offset - Number - Temperature offset for the printer's heated bed. +.. _sec-api-datamodel-printer-resends: + +Resend stats +------------ + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - ``count`` + - 1 + - int + - Number of resend requests received since connecting. + * - ``ratio`` + - 1 + - int + - Percentage of resend requests vs transmitted lines. Value between 0 and 100. .. _sec-api-datamodel-jobs: diff --git a/docs/api/push.rst b/docs/api/push.rst index 59bed82d0..c9c6a4b04 100644 --- a/docs/api/push.rst +++ b/docs/api/push.rst @@ -177,6 +177,15 @@ Data model - 0..* - List of String - Lines for the serial communication log (special messages) + * - ``resends`` + - 1 + - :ref:`Resend stats ` + - Current resend statistics for the connection + * - ``plugins`` + - 0..1 + - Map of plugin identifiers to additional data + - Additional data injected by plugins via the :ref:`octoprint.printer.additional_state_data hook `, + indexed by plugin identifier. Structure of additional data is determined by the plugin. .. _sec-api-push-datamodel-event: