Skip to content

Commit

Permalink
events: Document missing event types (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
acolomb authored Jun 10, 2021
1 parent 09cbf6c commit 874e765
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 10 deletions.
17 changes: 17 additions & 0 deletions events/failure.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Failure
-------

Generated for specific errors that will also be sent to the usage
reporting server, if enabled in the configuration. These are usually
of special interest to the developers to troubleshoot complex errors.
The ``data`` field contains a textual error message.

.. code-block:: json
{
"id": 93,
"globalID": 93,
"type": "Failure",
"time": "2021-06-07T21:22:03.414609034+02:00",
"data": "index handler got paused while already paused"
}
18 changes: 18 additions & 0 deletions events/folderpaused.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FolderPaused
------------

Generated when the configuration changes regarding the "paused" state
of a folder. Sent repeatedly for each changed folder.

.. code-block:: json
{
"id": 93,
"globalID": 93,
"type": "FolderPaused",
"time": "2021-06-07T23:45:03.414609034+02:00",
"data": {
"id": "abcde-fghij",
"label": "My folder"
}
}
18 changes: 18 additions & 0 deletions events/folderresumed.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FolderResumed
-------------

Generated when the configuration changes regarding the "paused" state
of a folder. Sent repeatedly for each changed folder.

.. code-block:: json
{
"id": 93,
"globalID": 93,
"type": "FolderResumed",
"time": "2021-06-07T23:45:03.414609034+02:00",
"data": {
"id": "abcde-fghij",
"label": "My folder"
}
}
4 changes: 2 additions & 2 deletions events/folderscanprogress.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Folder Scan Progress
--------------------
FolderScanProgress
------------------

Emitted in regular intervals (folder setting ProgressIntervalS, 2s by default)
during scans giving the amount of bytes already scanned and to be scanned in
Expand Down
6 changes: 2 additions & 4 deletions events/listenaddresseschanged.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.. listen-addresses-changed:
Listen Addresses Changed
------------------------
ListenAddressesChanged
----------------------

This event is emitted when a :ref:`listen address <listen-addresses>` changes.

Expand Down
4 changes: 2 additions & 2 deletions events/loginattempt.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Login Attempt
-------------
LoginAttempt
------------

When authentication is enabled for the GUI, this event is emitted on every
login attempt. If either the username or password are incorrect, ``success``
Expand Down
4 changes: 2 additions & 2 deletions events/remotedownloadprogress.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Remote Download Progress
------------------------
RemoteDownloadProgress
----------------------

This event is emitted when a :ref:`download-progress` message is
received. It returns a map ``data`` of filenames with a count of
Expand Down

0 comments on commit 874e765

Please sign in to comment.