From e354787ddca6dc665642a9d35687caabdd54f5d7 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Mon, 27 Sep 2021 23:35:40 +0200 Subject: [PATCH] Add hotlink bandwidth to admin api --- pixelapi/file.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pixelapi/file.go b/pixelapi/file.go index 7b185c4..89d4b72 100644 --- a/pixelapi/file.go +++ b/pixelapi/file.go @@ -49,9 +49,10 @@ type FileStats struct { // FileTimeSeries returns historic data for a file type FileTimeSeries struct { - Views TimeSeries `json:"views"` - Downloads TimeSeries `json:"downloads"` - Bandwidth TimeSeries `json:"bandwidth"` + Views TimeSeries `json:"views"` + Downloads TimeSeries `json:"downloads"` + Bandwidth TimeSeries `json:"bandwidth"` + DirectLinkBandwidth TimeSeries `json:"direct_link_bandwidth"` } // TimeSeries contains data captures over a time span