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 import itertools | 8 import itertools |
9 import json | 9 import json |
10 | 10 |
11 import template | 11 import template |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 dimensions = None | 225 dimensions = None |
226 | 226 |
227 @auth.require(acl.is_user) | 227 @auth.require(acl.is_user) |
228 def get(self, dimensions, resolution): | 228 def get(self, dimensions, resolution): |
229 # Save it for later use in self.process_data(). | 229 # Save it for later use in self.process_data(). |
230 self.dimensions = dimensions | 230 self.dimensions = dimensions |
231 self.send_response(_Dimensions, resolution) | 231 self.send_response(_Dimensions, resolution) |
232 | 232 |
233 def get_table(self, stats_data): | 233 def get_table(self, stats_data): |
234 return _stats_data_to_dimensions(stats_data, self.dimensions) | 234 return _stats_data_to_dimensions(stats_data, self.dimensions) |
OLD | NEW |