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

Side by Side Diff: scripts/master/buildbucket/client.py

Issue 2254643002: Instrument HTTP client requests to buildbucket (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@reland-tsmon-metrics
Patch Set: Fix test include paths Created 4 years, 3 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
« no previous file with comments | « scripts/common/unittests/test_env.py ('k') | scripts/master/deferred_resource.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """This file contains buildbucket service client.""" 5 """This file contains buildbucket service client."""
6 6
7 import datetime 7 import datetime
8 import json 8 import json
9 import os 9 import os
10 import urlparse 10 import urlparse
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 rootDesc=discovery_doc, 62 rootDesc=discovery_doc,
63 schema=apiclient.schema.Schemas(discovery_doc)) 63 schema=apiclient.schema.Schemas(discovery_doc))
64 64
65 return deferred_resource.DeferredResource( 65 return deferred_resource.DeferredResource(
66 resource, 66 resource,
67 credentials=cred_factory, 67 credentials=cred_factory,
68 max_concurrent_requests=10, 68 max_concurrent_requests=10,
69 verbose=verbose or False, 69 verbose=verbose or False,
70 log_prefix=common.LOG_PREFIX, 70 log_prefix=common.LOG_PREFIX,
71 timeout=60, 71 timeout=60,
72 http_client_name='buildbucket',
72 ) 73 )
OLDNEW
« no previous file with comments | « scripts/common/unittests/test_env.py ('k') | scripts/master/deferred_resource.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698