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

Unified Diff: infra_libs/ts_mon/common/standard_metrics.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: take out deleted utils methods Created 5 years, 4 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
Index: infra_libs/ts_mon/common/standard_metrics.py
diff --git a/infra_libs/ts_mon/standard_metrics.py b/infra_libs/ts_mon/common/standard_metrics.py
similarity index 78%
rename from infra_libs/ts_mon/standard_metrics.py
rename to infra_libs/ts_mon/common/standard_metrics.py
index 673e6cd38c550c3cf9da77f124ba8827718be1a8..601543550c6e092a82c4b986c4a536aa2b59c9c9 100644
--- a/infra_libs/ts_mon/standard_metrics.py
+++ b/infra_libs/ts_mon/common/standard_metrics.py
@@ -4,7 +4,10 @@
"""Metrics common to all tasks and devices."""
-from infra_libs.ts_mon import metrics
+try:
+ from infra_libs.ts_mon.common import metrics
+except ImportError:
+ from common import metrics
# TODO(dsansome): Add more metrics for git revision, cipd package version,
# uptime, etc.

Powered by Google App Engine
This is Rietveld 408576698