Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: infra/tools/metric_tool/test/data/missing_descriptions.py

Issue 1368583005: Create metric_tool to deal with metric definitions (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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')
OLDNEW
« no previous file with comments | « infra/tools/metric_tool/test/data/metric_name_not_a_string.py ('k') | infra/tools/metric_tool/test/data/normal_case.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698