Skip to content

Commit f769008

Browse files
committed
Add threshold slider to Devs notifications
1 parent a0c6d59 commit f769008

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/dev/notifications.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ The notifications inbox is a place where users can see all the notifications tha
8888

8989
The notifications settings allow users to configure the notifications they want to receive. Users can enable or disable notifications for each category and set thresholds for each notification. Thresholds determine when a notification should be sent. For example, if a user wants to receive a notification when CPU usage exceeds 80%, they can set the threshold to 80%. If the CPU usage goes above 80%, a notification will be sent.
9090

91+
In order to have a slider in the UI to adjust the threshold of the notification, the (gatus) endpoint must have a `metric` object. Yo can see it in the [Notifications file reference section](/docs/dev/references/notifications.md#example-gatus-endpoints).
92+
93+
:::info
94+
Only a threshold per endpoint is supported. The value it will be extracted from the first entry from the conditions array. Updating the value of the slider in the UI will update also the value of that condition.
95+
:::
96+
9197
![Notifications-Settings](/img/notifications-settings.png)
9298

9399
Furthermore, the notifications settings can be configured also during the installation process of the dappnode package.

0 commit comments

Comments
 (0)