You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2017/05/10 19:36:27 UTC

[1/2] incubator-trafficcontrol git commit: tc-237 adds api to expose current cdn stats once authenticated

Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 008bd2904 -> 4e35ed15e


tc-237 adds api to expose current cdn stats once authenticated


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/2547239b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/2547239b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/2547239b

Branch: refs/heads/master
Commit: 2547239be12cb176c04e664402a812c7ee261bb4
Parents: 008bd29
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Mon May 8 13:13:31 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Wed May 10 13:36:17 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/TrafficOpsRoutes.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/2547239b/traffic_ops/app/lib/TrafficOpsRoutes.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/TrafficOpsRoutes.pm b/traffic_ops/app/lib/TrafficOpsRoutes.pm
index 09322b7..72b1f85 100644
--- a/traffic_ops/app/lib/TrafficOpsRoutes.pm
+++ b/traffic_ops/app/lib/TrafficOpsRoutes.pm
@@ -902,9 +902,13 @@ sub traffic_stats_routes {
 	my $version   = shift;
 	my $namespace = "Extensions::TrafficStats::API";
 
-	$r->get("/api/$version/cdns/usage/overview")->to( 'CdnStats#get_usage_overview', namespace => $namespace );
+	# authenticated
 	$r->get("/api/$version/deliveryservice_stats")->over( authenticated => 1 )->to( 'DeliveryServiceStats#index', namespace => $namespace );
 	$r->get("/api/$version/cache_stats")->over( authenticated => 1 )->to( 'CacheStats#index', namespace => $namespace );
+	$r->get("/api/$version/current_stats")->over( authenticated => 1 )->to( 'CacheStats#current_stats', namespace => $namespace );
+
+	# unauthenticated
+	$r->get("/api/$version/cdns/usage/overview")->to( 'CdnStats#get_usage_overview', namespace => $namespace );
 	$r->get("internal/api/$version/daily_summary")->to( 'CacheStats#daily_summary', namespace => $namespace );
 	$r->get("internal/api/$version/current_stats")->to( 'CacheStats#current_stats', namespace => $namespace );
 }


[2/2] incubator-trafficcontrol git commit: This closes #556

Posted by ne...@apache.org.
This closes #556


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/4e35ed15
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/4e35ed15
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/4e35ed15

Branch: refs/heads/master
Commit: 4e35ed15ed02fb930801db26dfddebad4f6f7bf3
Parents: 2547239
Author: David Neuman <da...@gmail.com>
Authored: Wed May 10 13:36:19 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Wed May 10 13:36:19 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------