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

Unified Diff: appengine/third_party/gae_ts_mon/README.md

Issue 2708113002: Revert of Add field_specs to all metrics in luci-py (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/ts_mon_metrics.py ('k') | appengine/third_party/gae_ts_mon/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/third_party/gae_ts_mon/README.md
diff --git a/appengine/third_party/gae_ts_mon/README.md b/appengine/third_party/gae_ts_mon/README.md
index 9c181283a2af25799d23b4f6262cb7ecb513d35d..bc9d213a5674e3ad429f6e20654e7d204dc538e9 100644
--- a/appengine/third_party/gae_ts_mon/README.md
+++ b/appengine/third_party/gae_ts_mon/README.md
@@ -76,10 +76,7 @@
from infra_libs import ts_mon
class MyHandler(webapp2.RequestHandler):
- goats_teleported = ts_mon.CounterMetric(
- 'goats/teleported',
- 'Number of goats teleported',
- None)
+ goats_teleported = ts_mon.CounterMetric('goats/teleported')
def get(self):
count = goat_teleporter.teleport()
@@ -122,8 +119,8 @@
'task_num': 0, # instance ID
}
- remaining = ts_mon.GaugeMetric('goats/remaining', '...', None)
- in_flight = ts_mon.GaugeMetric('goats/in_flight', '...', None)
+ remaining = ts_mon.GaugeMetric('goats/remaining')
+ in_flight = ts_mon.GaugeMetric('goats/in_flight)
def set_global_metrics():
# Query some global resource, e.g. Datastore
« no previous file with comments | « appengine/swarming/ts_mon_metrics.py ('k') | appengine/third_party/gae_ts_mon/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698