Skip to content

Commit

Permalink
events: Document missing FolderWatchStateChanged (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
acolomb authored Mar 15, 2022
1 parent 48a98f9 commit 8d51194
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions events/folderwatchstatechanged.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FolderWatchStateChanged
-----------------------

The ``FolderWatchStateChanged`` event is emitted when a folder's watcher routine
encounters a new error, or when a previous error disappeared after retrying.
The event contains the ID of the affected folder and textual error messages
describing the previous (``from``) and the updated (``to``) error conditions.
If there was no error in either of these, the respective field is omitted.

.. code-block:: json
{
"id": 123,
"type": "FolderWatchStateChanged",
"time": "2022-03-14T12:34:56.890000000+01:00",
"data": {
"folder": "default",
"from": "Something bad happened.",
"to": "Something worse happened."
}
}

0 comments on commit 8d51194

Please sign in to comment.