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

Unified Diff: appengine_module/gae_ts_mon/__init__.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: clean up code 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: appengine_module/gae_ts_mon/__init__.py
diff --git a/appengine_module/gae_ts_mon/__init__.py b/appengine_module/gae_ts_mon/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..d78cf896fc3931942594f9c37953ebf567d28218
--- /dev/null
+++ b/appengine_module/gae_ts_mon/__init__.py
@@ -0,0 +1,31 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
agable 2015/08/10 22:23:58 Make sure that there is also an appengine_module/g
jshu 2015/08/11 21:57:18 should the tests be copied over? the test folder i
agable 2015/08/12 22:18:08 Yes, the tests should be copied, and modified so t
jshu 2015/08/14 20:47:56 got it. I've created empty placeholder files for t
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import sys
+
+third_party_dir = os.path.join(os.path.dirname(__file__), 'third_party')
+if third_party_dir not in sys.path:
+ sys.path.insert(0, third_party_dir)
+
+from gae_ts_mon.config import initialize
+
+from gae_ts_mon.monitors import PubSubMonitor
+from gae_ts_mon.monitors import NullMonitor
+
+from gae_ts_mon.interface import close
+from gae_ts_mon.interface import send
+from gae_ts_mon.interface import flush
+from gae_ts_mon.interface import register
+from gae_ts_mon.interface import unregister
+
+from gae_ts_mon.metrics import BooleanMetric
+from gae_ts_mon.metrics import CounterMetric
+from gae_ts_mon.metrics import CumulativeMetric
+from gae_ts_mon.metrics import DistributionMetric
+from gae_ts_mon.metrics import FloatMetric
+from gae_ts_mon.metrics import GaugeMetric
+from gae_ts_mon.metrics import StringMetric
+
+from gae_ts_mon.gae import *

Powered by Google App Engine
This is Rietveld 408576698