You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/11/19 19:22:20 UTC

[GitHub] [trafficcontrol] ocket8888 commented on a change in pull request #4114: Rewrite current stats from Perl to Golang

ocket8888 commented on a change in pull request #4114: Rewrite current stats from Perl to Golang
URL: https://github.com/apache/trafficcontrol/pull/4114#discussion_r348120409
 
 

 ##########
 File path: traffic_ops/traffic_ops_golang/routing/routes.go
 ##########
 @@ -118,6 +118,7 @@ func Routes(d ServerData) ([]Route, []RawRoute, http.Handler, error) {
 		// Traffic Stats access
 		{1.2, http.MethodGet, `deliveryservice_stats`, trafficstats.GetDSStats, auth.PrivLevelReadOnly, Authenticated, nil},
 		{1.2, http.MethodGet, `cache_stats`, trafficstats.GetCacheStats, auth.PrivLevelReadOnly, Authenticated, nil},
+		{1.2, http.MethodGet, `current_stats`, trafficstats.GetCurrentStats, auth.PrivLevelReadOnly, Authenticated, nil},
 
 Review comment:
   I think he's just following the precedent I set, but in retrospect I think Mojolicious would support trailing `/` and/or `.json` and these ought to as well.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services