Fix Glance Speedtest subrequest headers
This commit is contained in:
@@ -149,7 +149,7 @@ pages:
|
|||||||
url: http://speedtest-tracker/api/v1/stats
|
url: http://speedtest-tracker/api/v1/stats
|
||||||
headers:
|
headers:
|
||||||
Authorization: Bearer ${GLANCE_SPEEDTEST_API_TOKEN}
|
Authorization: Bearer ${GLANCE_SPEEDTEST_API_TOKEN}
|
||||||
Accept: application/json
|
Accept: application/json
|
||||||
template: |
|
template: |
|
||||||
{{ $stats := .Subrequest "stats" }}
|
{{ $stats := .Subrequest "stats" }}
|
||||||
{{ $downloadChange := percentChange (.JSON.Float "download_bits") ($stats.JSON.Float "avg_download") }}
|
{{ $downloadChange := percentChange (.JSON.Float "download_bits") ($stats.JSON.Float "avg_download") }}
|
||||||
|
|||||||
Reference in New Issue
Block a user