OLD | NEW |
1 # Copyright 2014 The Swarming Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Frontend handlers for statistics.""" | 5 """Frontend handlers for statistics.""" |
6 | 6 |
7 import datetime | 7 import datetime |
8 | 8 |
9 import webapp2 | 9 import webapp2 |
10 | 10 |
11 import stats | 11 import stats |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 RESOLUTION = 'minutes' | 103 RESOLUTION = 'minutes' |
104 | 104 |
105 | 105 |
106 def get_routes(): | 106 def get_routes(): |
107 return [ | 107 return [ |
108 webapp2.Route(r'/stats', StatsHandler), | 108 webapp2.Route(r'/stats', StatsHandler), |
109 webapp2.Route(r'/isolate/api/v1/stats/days', StatsGvizDaysHandler), | 109 webapp2.Route(r'/isolate/api/v1/stats/days', StatsGvizDaysHandler), |
110 webapp2.Route(r'/isolate/api/v1/stats/hours', StatsGvizHoursHandler), | 110 webapp2.Route(r'/isolate/api/v1/stats/hours', StatsGvizHoursHandler), |
111 webapp2.Route(r'/isolate/api/v1/stats/minutes', StatsGvizMinutesHandler), | 111 webapp2.Route(r'/isolate/api/v1/stats/minutes', StatsGvizMinutesHandler), |
112 ] | 112 ] |
OLD | NEW |