Skip to content

Commit 8e479db

Browse files
svenvg93gitbook-bot
authored andcommitted
GITBOOK-1: No subject
1 parent 338e77d commit 8e479db

File tree

9 files changed

+94
-35
lines changed

9 files changed

+94
-35
lines changed
187 KB
Loading
48.3 KB
Loading
67 KB
Loading
125 KB
Loading

SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232
* [Data Integrations](settings/data-platforms/README.md)
3333
* [InfluxDB v2](settings/data-platforms/influxdb2.md)
3434
* [Notifications](settings/notifications/README.md)
35+
* [Apprise](settings/notifications/apprise.md)
3536
* [Database](settings/notifications/database.md)
3637
* [Mail](settings/notifications/mail.md)
37-
* [Telegram](settings/notifications/telegram.md)
38+
* [Webhook](settings/notifications/webhook.md)
3839

3940
## 👀 Other
4041

other/speedtest-process.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# Speedtest Process
22

3-
Speedtest Tracker uses the [Official Ookla CLI](https://www.speedtest.net/apps/cli) client to execute the speedtest. There a couple of stages the Speedtest Tracker goes through, below explains the process. 
3+
Speedtest Tracker uses the [Official Ookla CLI](https://www.speedtest.net/apps/cli) client to execute the speedtest. There a couple of stages the Speedtest Tracker goes through, below explains the process.
44

55
{% stepper %}
66
{% step %}
7-
### Started
7+
#### Started
88

99
The Speedtest process is started
1010
{% endstep %}
1111

1212
{% step %}
13-
### Checking
13+
#### Checking
1414

1515
The application checks for an internet connection by calling `https://icanhazip.com`
1616
{% endstep %}
1717

1818
{% step %}
19-
### Skipped \[Optional]
19+
#### Skipped \[Optional]
2020

21-
If you have the `SPEEDTEST_SKIP_IPS` the test will be marked as skipped as the IP returning during `Checking` matches your defined IP.
21+
If you have the `SPEEDTEST_SKIP_IPS` the test will be marked as skipped as the IP returning during `Checking` matches your defined IP.
2222
{% endstep %}
2323

2424
{% step %}
25-
### Running
25+
#### Running
2626

27-
The application runs the speedtest by simply running the speedtest command. This command runs the speedtest like another other speedtest and returns the result in json format so the application an easily process it. 
27+
The application runs the speedtest by simply running the speedtest command. This command runs the speedtest like another other speedtest and returns the result in json format so the application an easily process it.
2828

2929
```
3030
speedtest -accept-license --accept-gdpr --format=json
@@ -38,20 +38,20 @@ speedtest -accept-license --accept-gdpr --format=json --server-id=YOURSERVERID
3838
{% endstep %}
3939

4040
{% step %}
41-
### Failed
41+
#### Failed
4242

43-
If for various reasons the Ookla CLI returns an error, because the defined server was offline for example the tests is marked as failed. As well when the `Checking` stage fails when there is no internet. 
43+
If for various reasons the Ookla CLI returns an error, because the defined server was offline for example the tests is marked as failed. As well when the `Checking` stage fails when there is no internet.
4444
{% endstep %}
4545

4646
{% step %}
47-
### Benchmarking
47+
#### Benchmarking
4848

4949
When you have thresholds set this step will evaluate the results against the threshold to determine if the test was healthy or not.
5050
{% endstep %}
5151

5252
{% step %}
53-
### Completed
53+
#### Completed
5454

55-
This is the end stage of the process when every step is completed the test is marked as such. 
55+
This is the end stage of the process when every step is completed the test is marked as such.
5656
{% endstep %}
5757
{% endstepper %}

settings/notifications/apprise.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Apprise
2+
3+
Speedtest Tracker uses [Apprise](https://github.com/caronc/apprise-api) to send notifications to a wide variety of messaging services with a simple, unified configuration.
4+
5+
Apprise allows you to easily deliver alerts to popular platforms such as Discord, Slack, Telegram and many more.
6+
7+
{% hint style="warning" %}
8+
To use Apprise notifications, you must deploy the [Apprise API](https://github.com/caronc/apprise-api) service. This is out of scope of this documentation.
9+
{% endhint %}
10+
11+
<figure><img src="../../.gitbook/assets/apprise_notification.png" alt=""><figcaption><p>Apprise Settings</p></figcaption></figure>
12+
13+
<table><thead><tr><th width="200">Name</th><th width="535">Description</th></tr></thead><tbody><tr><td>URL</td><td>This is the URL of your running Apprise API instance </td></tr><tr><td>Service URL</td><td>This is the URL of the service that will receive the notification. You can find a full list of supported services and how to format their URLs in the <a href="https://github.com/caronc/apprise/wiki#notification-services">Apprise notification services documentation</a>.</td></tr></tbody></table>
14+
15+
### Triggers
16+
17+
<table><thead><tr><th width="237">Name</th><th>Description</th></tr></thead><tbody><tr><td>On completed speedtest</td><td>On each successful speedtest a notification will be send to the application.</td></tr><tr><td>On absolute threshold failure</td><td>On any absolute threshold failure a notification will be send to the application.</td></tr></tbody></table>
18+

settings/notifications/telegram.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

settings/notifications/webhook.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Webhook
2+
3+
A webhook will send a JSON payload to a receiver of your choice
4+
5+
<figure><img src="../../.gitbook/assets/webhook_notification.png" alt=""><figcaption><p>Webhook settings</p></figcaption></figure>
6+
7+
### Payload
8+
9+
Payload sent for a completed test
10+
11+
```json
12+
{
13+
"result_id": 2,
14+
"site_name": "Speedtest Tracker",
15+
"service": "Ookla",
16+
"serverName": "Speedtest",
17+
"serverId": 12345,
18+
"isp": "Speedtest Communications",
19+
"ping": 6.7,
20+
"download": 93281280,
21+
"upload": 28769728,
22+
"packetLoss": 0,
23+
"speedtest_url": "https://docs.speedtest-tracker.dev",
24+
"url": "http://localhost/admin/results"
25+
}
26+
```
27+
28+
Payload sent for a threshold failure
29+
30+
```json
31+
{
32+
"result_id": 8,
33+
"site_name": "Speedtest Tracker",
34+
"service": "Ookla",
35+
"serverName": "Speedtest",
36+
"serverId": 12345,
37+
"isp": "Speedtest Communications",
38+
"metrics": [
39+
{
40+
"name": "Download",
41+
"threshold": "1000 Mbps",
42+
"value": "91.78 Mbps"
43+
},
44+
{
45+
"name": "Upload",
46+
"threshold": "1000 Mbps",
47+
"value": "28.18 Mbps"
48+
},
49+
{
50+
"name": "Ping",
51+
"threshold": "2 ms",
52+
"value": "6.41 ms"
53+
}
54+
],
55+
"speedtest_url": "https://docs.speedtest-tracker.dev",
56+
"url": "http://localhost/admin/results"
57+
}
58+
```
59+
60+
### Triggers
61+
62+
<table><thead><tr><th width="237">Name</th><th>Description</th></tr></thead><tbody><tr><td>On completed speedtest</td><td>On each successful speedtest a notification will be send to the application.</td></tr><tr><td>On absolute threshold failure</td><td>On any absolute threshold failure a notification will be send to the application.</td></tr></tbody></table>

0 commit comments

Comments
 (0)