Skip to content

Conversation

@svenvg93
Copy link
Contributor

@svenvg93 svenvg93 commented Jan 6, 2026

πŸ“ƒ Description

This pr update the webhook payload

πŸ“– Documentation

alexjustesen/speedtest-tracker-docs#106

πŸͺ΅ Changelog

βž• Added

  • status to the completed tests, in preparation of failed tests
  • test_value to the threshold payload as mbit. To be inline with the benchmark_value

✏️ Changed

  • rename value to benchmark_value
  • round ping in the completed payload
  • change download and upload to mbit in the completed payload to be inline with the benchmark failed payload
  • Align the Packet Loss field name

πŸ“· 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"
}

@alexjustesen alexjustesen merged commit b7846b0 into alexjustesen:main Jan 21, 2026
9 checks passed
@svenvg93 svenvg93 deleted the 2592-add-results-to-payload branch January 21, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Name of Packetloss in Webhook JSON [Feature] Webhook JSON

2 participants