GET /deliveryservice_stats limits metric types #4740
Labels
regression bug
a bug in existing functionality introduced by a new version
Traffic Ops
related to Traffic Ops
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
The Go version of GET /deliveryservice_stats limits the metric types to the following:
Therefore making it impossible to fetch
metricType=foo
for example. The Perl version did not restrict the metric types but rather it simply added whatever metric type to the influx query.I would suggest fixing this in 1.x and 2.x (which is already part of TC 4.1) and potentially redesigning the entire endpoint for 3.x (which is part of TC 5.0). I'll created a separate issue for that - #4741
Expected / new behavior:
GET /api/deliveryservice_stats does not limit metric types to a predefined set.
Minimal reproduction of the problem with instructions:
GET /api/1.4/deliveryservice_stats?metricType=foo will return a 400 bad request.
The text was updated successfully, but these errors were encountered: