I recently opened a PR (draft because I'm having issues getting testable data) to rewrite /deliveryservice_stats to Go. This has a few inherent dangers. That particular endpoint has been implemented as a plugin specifically because many people found it desirable to override. This can still be done, but any plugins will need to be rewritten. Furthermore, the rewrite changed a few things about the endpoint (and you can read about all of them here: https://github.com/apache/trafficcontrol/pull/3758). Most of these changes were to undocumented behavior, but one specific change strikes me as potentially problematic; the values allowed for the `interval` query parameters have been restricted to 1m, 5m, 1h, 6h, 1d, 1w or 4w. If you want 2 minutes of data, you'll need to either make two "1m" requests, or make one "5m" request and throw away all the data you don't need.

If this poses a problem to anyone, I'd like to hear about it.

Reply via email to