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: