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

Unified Diff: infra/tools/send_monitoring_event/common.py

Issue 2108803004: Add support for build category in BuildEvent (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Addressed comments Created 4 years, 5 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 | « no previous file | infra_libs/event_mon/monitoring.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/tools/send_monitoring_event/common.py
diff --git a/infra/tools/send_monitoring_event/common.py b/infra/tools/send_monitoring_event/common.py
index 421ed4aa44d80edbf05c2ffb065e33688c138fd7..41065828d130851c139e5931277339c74f77e2a6 100644
--- a/infra/tools/send_monitoring_event/common.py
+++ b/infra/tools/send_monitoring_event/common.py
@@ -111,6 +111,9 @@ def add_argparse_options(parser):
help='URL of the patchset that triggered build')
build_group.add_argument('--build-event-bbucket-id',
help='Buildbucket ID for this build')
+ build_group.add_argument('--build-event-category',
+ help='Build category, e.g. cq or git_cl_try')
+
build_group.add_argument('--build-event-goma-stats-path',
metavar='FILENAME',
help='File containing a serialized GomaStats '
@@ -301,6 +304,7 @@ def send_build_event(args):
extra_result_code=args.build_event_extra_result_code,
patch_url=args.build_event_patch_url,
bbucket_id=args.build_event_bbucket_id,
+ category=args.build_event_category,
timestamp_kind=args.event_mon_timestamp_kind,
event_timestamp=args.event_mon_event_timestamp,
goma_stats=goma_stats,
@@ -389,7 +393,8 @@ def read_events_from_file(filename):
event_timestamp=args.get('event-mon-event-timestamp'),
service_name=args.get('event-mon-service-name'),
patch_url=args.get('build-event-patch-url'),
- bbucket_id=args.get('build-event-bbucket-id')))
+ bbucket_id=args.get('build-event-bbucket-id'),
+ category=args.get('build-event-category')))
else:
LOGGER.warning('build-event-type field not found, skipping line '
'%d in %s', lineno, filename)
« no previous file with comments | « no previous file | infra_libs/event_mon/monitoring.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698