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

Unified Diff: infra_libs/ts_mon/monitors.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: add noncululativedistribution metric to ts_mon imports 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
« no previous file with comments | « infra_libs/ts_mon/metrics.py ('k') | infra_libs/ts_mon/standard_metrics.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/monitors.py
diff --git a/infra_libs/ts_mon/monitors.py b/infra_libs/ts_mon/monitors.py
index 1956a2f728f5dc660297e9360a112c23545308c3..b8162a1f0ead33a4850cf5934a4745d27f8d2415 100644
--- a/infra_libs/ts_mon/monitors.py
+++ b/infra_libs/ts_mon/monitors.py
@@ -43,11 +43,11 @@ from monacq.proto import metrics_pb2
from infra_libs import logs
import infra_libs
-import httplib2
from apiclient import discovery
from oauth2client.client import GoogleCredentials
from oauth2client.file import Storage
from oauth2client.gce import AppAssertionCredentials
+import httplib2
# Special string that can be passed through as the credentials path to use the
# default GCE service account.
@@ -147,7 +147,6 @@ class PubSubMonitor(Monitor):
return Storage(credentials_file_path).get()
def _initialize(self, credsfile, project, topic, use_instrumented_http):
- # Copied from acquisition_api.AcquisitionCredential.Load.
creds = self._load_credentials(credsfile)
if use_instrumented_http:
self._http = infra_libs.InstrumentedHttp('acq-mon-api-pubsub')
« no previous file with comments | « infra_libs/ts_mon/metrics.py ('k') | infra_libs/ts_mon/standard_metrics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698