mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Add a library for monitoring.
Change-Id: I64c3d143186be938042c12e2455bdb034d3bcba8 Reviewed-on: https://chromium-review.googlesource.com/1079639 Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org> Reviewed-by: Aaron Gable <agable@chromium.org>
This commit is contained in:
24
upload_metrics.py
Normal file
24
upload_metrics.py
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python
|
||||
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import sys
|
||||
import urllib2
|
||||
|
||||
|
||||
APP_URL = 'https://cit-cli-metrics.appspot.com'
|
||||
|
||||
|
||||
def main():
|
||||
metrics = raw_input()
|
||||
try:
|
||||
urllib2.urlopen(APP_URL + '/upload', metrics)
|
||||
except urllib2.HTTPError:
|
||||
pass
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user