OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 import datetime | 5 import datetime |
6 import logging | 6 import logging |
7 | 7 |
8 import webapp2 | 8 import webapp2 |
9 | 9 |
10 from google.appengine.ext import ndb | 10 from google.appengine.ext import ndb |
11 | 11 |
12 from infra_libs.ts_mon import shared | 12 from infra_libs.ts_mon import shared |
13 from infra_libs.ts_mon.common import interface | 13 from infra_libs.ts_mon.common import interface |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 _assign_task_num() | 74 _assign_task_num() |
75 | 75 |
76 for name, callback in shared.global_metrics_callbacks.iteritems(): | 76 for name, callback in shared.global_metrics_callbacks.iteritems(): |
77 logging.debug('Invoking callback %s', name) | 77 logging.debug('Invoking callback %s', name) |
78 callback() | 78 callback() |
79 | 79 |
80 | 80 |
81 app = webapp2.WSGIApplication([ | 81 app = webapp2.WSGIApplication([ |
82 (r'/internal/cron/ts_mon/send', SendHandler), | 82 (r'/internal/cron/ts_mon/send', SendHandler), |
83 ], debug=True) | 83 ], debug=True) |
OLD | NEW |