File: ntfy.rst

package info (click to toggle)
simplemonitor 1.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,520 kB
  • sloc: python: 8,725; sh: 258; makefile: 74; javascript: 69
file content (77 lines) | stat: -rw-r--r-- 1,588 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
ntfy - ntfy notifications
^^^^^^^^^^^^^^^^^^^^^^^^^

.. include:: ../creds-warning.rst

Send alerts using the ntfy_ service.

.. _ntfy: https://ntfy.sh

.. confval:: topic

    :type: string
    :required: true

    the ntfy topic to send to

.. confval:: priority

    :type: str or int
    :required: false
    :default: ``default``

    the priority to use for notifications. an int 1 to 5 (1 is lowest, 5 is highest), or one of ``max``, ``high``, ``default``, ``low``, ``min``

.. confval:: tags

    :type: string
    :required: false

    the tags to add to the notification. A comma-separated list of strings

.. confval:: token

    :type: string
    :required: false

    your token for ntfy, if required

.. confval:: server

    :type: string
    :required: false
    :default: ``https://ntfy.sh``

    the server to send to

.. confval:: timeout

    :type: int
    :required: false
    :default: ``5``

    Timeout for HTTP request

.. confval:: icon_prefix

    :type: bool
    :required: false
    :default: false

    Prefix the subject line with an icon dependent on the result (failed/succeeded)

.. confval:: icon_failed

    :type: str
    :required: false
    :default: ``274C``

    Unicode code for the "failed" icon. The code is often provided as "U+<code>" (e.g. ``U+274C``). The default icon for the failed status is ❌.

.. confval:: icon_succeeded

    :type: str
    :required: false
    :default: ``2705``

    Unicode code for the "succeeded" icon. The code is often provided as "U+<code>" (e.g. ``U+2705``). The default icon for the failed status is ✅.