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 """Example containing metrics with and without descriptions.""" |
| 6 from infra_libs import ts_mon |
| 7 |
| 8 metric1 = ts_mon.BooleanMetric('/my/metric1', description='metric1') |
| 9 metric2 = ts_mon.CounterMetric('/my/metric2', description='metric2') |
| 10 metric3 = ts_mon.CumulativeDistributionMetric('/my/metric3', |
| 11 description='metric3') |
| 12 metric4 = ts_mon.CumulativeMetric('/my/metric4', description='metric4') |
| 13 |
| 14 metric6 = ts_mon.FloatMetric('/my/metric6') |
| 15 metric7 = ts_mon.GaugeMetric('/my/metric7') |
| 16 metric8 = ts_mon.CumulativeDistributionMetric('/my/metric8') |
| 17 metric9 = ts_mon.NonCumulativeDistributionMetric('/my/metric9') |
| 18 metric10 = ts_mon.StringMetric('/my/metric10') |
OLD | NEW |