You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Jeremy Mitchell (JIRA)" <ji...@apache.org> on 2017/05/05 16:05:04 UTC

[jira] [Created] (TC-274) TO API: cache_stats and deliveryservice_stats endpoints should use configurable retention period value

Jeremy Mitchell created TC-274:
----------------------------------

             Summary: TO API: cache_stats and deliveryservice_stats endpoints should use configurable retention period value
                 Key: TC-274
                 URL: https://issues.apache.org/jira/browse/TC-274
             Project: Traffic Control
          Issue Type: Improvement
          Components: Traffic Ops API
            Reporter: Jeremy Mitchell
            Priority: Minor


The implementation of the following APIs use hard-coded values for the Retention Period

GET api/version/cache_stats
GET api/version/deliveryservice_stats

notice the "monthly" in the queries:

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/Extensions/TrafficStats/Builder/CacheStatsBuilder.pm#L78

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/Extensions/TrafficStats/Builder/CacheStatsBuilder.pm#L95

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/Extensions/TrafficStats/Builder/DeliveryServiceStatsBuilder.pm#L81

https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/Extensions/TrafficStats/Builder/DeliveryServiceStatsBuilder.pm#L96

this retention period name should be configurable and probably stored in the influxdb.conf files.





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)