| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from infra_libs.ts_mon.common.metrics import CumulativeDistributionMetric |
| 6 from infra_libs.ts_mon.common.metrics import CounterMetric |
| 7 |
| 8 access_count = CounterMetric('gae/access/count') |
| 9 request_bytes = CumulativeDistributionMetric('http/request_bytes') |
| 10 response_bytes = CumulativeDistributionMetric('http/response_bytes') |
| 11 durations = CumulativeDistributionMetric('http/durations') |
| 12 response_status = CounterMetric('http/response_status') |
| 13 |
| 14 |
| 15 def _reset_for_testing(): # pragma: no cover |
| 16 for metric in (access_count, request_bytes, response_bytes, |
| 17 durations, response_status): |
| 18 metric.reset() |
| OLD | NEW |