chore: update webhook payload #2636
Merged
+12
β7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π Description
This pr update the webhook payload
π Documentation
alexjustesen/speedtest-tracker-docs#106
πͺ΅ Changelog
β Added
statusto the completed tests, in preparation of failed teststest_valueto the threshold payload as mbit. To be inline with thebenchmark_valueβοΈ Changed
valuetobenchmark_valuepingin the completed payloaddownloadanduploadto mbit in the completed payload to be inline with the benchmark failed payloadπ· Payloads
Completed Tests
{ "result_id": 17, "site_name": "Speedtest Tracker", "server_name": "Speedtest", "server_id": 52365, "status": "completed", "isp": "Speedy Communications", "ping": 3, "download": 1026, "upload": 1012, "packet_loss": 0, "speedtest_url": "https://www.speedtest.net/result/c/288aa4aa-a52e-493c-8d60-xxxx", "url": "http://192.168.1.5/admin/results" }Benchmark Failed
{ "result_id": 14, "site_name": "Speedtest Tracker", "isp": "Speedy Communications", "benchmarks": { "download": { "bar": "min", "passed": false, "type": "absolute", "test_value": 1022, "benchmark_value": 2000, "unit": "mbps" }, "upload": { "bar": "min", "passed": false, "type": "absolute", "test_value": 1018, "benchmark_value": 2000, "unit": "mbps" }, "ping": { "bar": "max", "passed": false, "type": "absolute", "test_value": 3, "benchmark_value": 1, "unit": "ms" } }, "speedtest_url": "https://www.speedtest.net/result/c/1433a2de-eb3c-4a0e-ab29-xxxxxx", "url": "http://192.168.1.5/admin/results" }