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

Side by Side Diff: infra_libs/ts_mon/protos/metrics_pb2.py

Issue 1720323002: Update metrics.proto, and set metric descriptions in MetricsData messages (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Undo the go link change Created 4 years, 10 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 | « infra_libs/ts_mon/protos/metrics.proto ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Generated by the protocol buffer compiler. DO NOT EDIT! 1 # Generated by the protocol buffer compiler. DO NOT EDIT!
2 # source: metrics.proto 2 # source: metrics.proto
3 3
4 from google.protobuf import descriptor as _descriptor 4 from google.protobuf import descriptor as _descriptor
5 from google.protobuf import message as _message 5 from google.protobuf import message as _message
6 from google.protobuf import reflection as _reflection 6 from google.protobuf import reflection as _reflection
7 from google.protobuf import descriptor_pb2 7 from google.protobuf import descriptor_pb2
8 # @@protoc_insertion_point(imports) 8 # @@protoc_insertion_point(imports)
9 9
10 10
11 import acquisition_network_device_pb2 11 import acquisition_network_device_pb2
12 import acquisition_task_pb2 12 import acquisition_task_pb2
13 13
14 14
15 DESCRIPTOR = _descriptor.FileDescriptor( 15 DESCRIPTOR = _descriptor.FileDescriptor(
16 name='metrics.proto', 16 name='metrics.proto',
17 package='ts_mon.proto', 17 package='ts_mon.proto',
18 serialized_pb='\n\rmetrics.proto\x12\x0cts_mon.proto\x1a acquisition_network_d evice.proto\x1a\x16\x61\x63quisition_task.proto\"u\n\x11MetricsCollection\x12\'\ n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x19.ts_mon.proto.MetricsData\x12\x1a\n\x12 start_timestamp_us\x18\x02 \x01(\x04\x12\x1b\n\x13\x63ollection_point_id\x18\x03 \x01(\t\"\xc1\x01\n\x0cMetricsField\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0 4type\x18\x03 \x01(\x0e\x32$.ts_mon.proto.MetricsField.FieldType:\x06STRING\x12\ x14\n\x0cstring_value\x18\x04 \x01(\t\x12\x11\n\tint_value\x18\x05 \x01(\x03\x12 \x12\n\nbool_value\x18\x06 \x01(\x08\"*\n\tFieldType\x12\n\n\x06STRING\x10\x01\x 12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\"\xcf\x03\n\x17PrecomputedD istribution\x12\x41\n\tspec_type\x18\x01 \x01(\x0e\x32..ts_mon.proto.Precomputed Distribution.SpecType\x12\x11\n\x05width\x18\x02 \x01(\x01:\x02\x31\x30\x12\x18\ n\rgrowth_factor\x18\x03 \x01(\x01:\x01\x30\x12\x17\n\x0bnum_buckets\x18\x04 \x0 1(\x05:\x02\x31\x30\x12\x14\n\x0clower_bounds\x18\x05 \x03(\x01\x12\x1c\n\ris_cu mulative\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x0e\n\x06\x62ucket\x18\x07 \x03(\ x12\x12\x11\n\tunderflow\x18\x08 \x01(\x12\x12\x10\n\x08overflow\x18\t \x01(\x12 \x12\x0c\n\x04mean\x18\n \x01(\x01\x12 \n\x18sum_of_squared_deviation\x18\x0b \x 01(\x01\"\x91\x01\n\x08SpecType\x12\x19\n\x15\x43\x41NONICAL_POWERS_OF_2\x10\x01 \x12 \n\x1c\x43\x41NONICAL_POWERS_OF_10_P_0_2\x10\x02\x12\x1a\n\x16\x43\x41NONIC AL_POWERS_OF_10\x10\x03\x12\x18\n\x14\x43USTOM_PARAMETERIZED\x10\x14\x12\x12\n\x 0e\x43USTOM_BOUNDED\x10\x15\"\xd1\x05\n\x0bMetricsData\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x1a\n\x12metric_name_prefix\x18\x02 \x01(\t\x12\x33\n\x0enetwork_de vice\x18\x0b \x01(\x0b\x32\x1b.ts_mon.proto.NetworkDevice\x12 \n\x04task\x18\x0c \x01(\x0b\x32\x12.ts_mon.proto.Task\x12*\n\x06\x66ields\x18\x14 \x03(\x0b\x32\x 1a.ts_mon.proto.MetricsField\x12\x0f\n\x07\x63ounter\x18\x1e \x01(\x03\x12\r\n\x 05gauge\x18 \x01(\x03\x12\"\n\x1anoncumulative_double_value\x18\" \x01(\x01\x12 ;\n\x0c\x64istribution\x18# \x01(\x0b\x32%.ts_mon.proto.PrecomputedDistribution\ x12\x14\n\x0cstring_value\x18$ \x01(\t\x12\x15\n\rboolean_value\x18% \x01(\x08\x 12\x1f\n\x17\x63umulative_double_value\x18& \x01(\x01\x12\x1a\n\x12start_timesta mp_us\x18( \x01(\x04\x12.\n\x05units\x18) \x01(\x0e\x32\x1f.ts_mon.proto.Metrics Data.Units\"\xf9\x01\n\x05Units\x12\x11\n\rUNKNOWN_UNITS\x10\x00\x12\x0b\n\x07SE CONDS\x10\x01\x12\x10\n\x0cMILLISECONDS\x10\x02\x12\x10\n\x0cMICROSECONDS\x10\x0 3\x12\x0f\n\x0bNANOSECONDS\x10\x04\x12\x08\n\x04\x42ITS\x10\x15\x12\t\n\x05\x42Y TES\x10\x16\x12\r\n\tKILOBYTES\x10\x1f\x12\r\n\tMEGABYTES\x10 \x12\r\n\tGIGABYTE S\x10!\x12\r\n\tKIBIBYTES\x10)\x12\r\n\tMEBIBYTES\x10*\x12\r\n\tGIBIBYTES\x10+\x 12\x08\n\x04\x41MPS\x10<\x12\r\n\tMILLIAMPS\x10=\x12\x13\n\x0f\x44\x45GREES_CELS IUS\x10>') 18 serialized_pb='\n\rmetrics.proto\x12\x0cts_mon.proto\x1a acquisition_network_d evice.proto\x1a\x16\x61\x63quisition_task.proto\"u\n\x11MetricsCollection\x12\'\ n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x19.ts_mon.proto.MetricsData\x12\x1a\n\x12 start_timestamp_us\x18\x02 \x01(\x04\x12\x1b\n\x13\x63ollection_point_id\x18\x03 \x01(\t\"\xc1\x01\n\x0cMetricsField\x12\x0c\n\x04name\x18\x01 \x01(\t\x12:\n\x0 4type\x18\x03 \x01(\x0e\x32$.ts_mon.proto.MetricsField.FieldType:\x06STRING\x12\ x14\n\x0cstring_value\x18\x04 \x01(\t\x12\x11\n\tint_value\x18\x05 \x01(\x03\x12 \x12\n\nbool_value\x18\x06 \x01(\x08\"*\n\tFieldType\x12\n\n\x06STRING\x10\x01\x 12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\"\xcf\x03\n\x17PrecomputedD istribution\x12\x41\n\tspec_type\x18\x01 \x01(\x0e\x32..ts_mon.proto.Precomputed Distribution.SpecType\x12\x11\n\x05width\x18\x02 \x01(\x01:\x02\x31\x30\x12\x18\ n\rgrowth_factor\x18\x03 \x01(\x01:\x01\x30\x12\x17\n\x0bnum_buckets\x18\x04 \x0 1(\x05:\x02\x31\x30\x12\x14\n\x0clower_bounds\x18\x05 \x03(\x01\x12\x1c\n\ris_cu mulative\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x0e\n\x06\x62ucket\x18\x07 \x03(\ x12\x12\x11\n\tunderflow\x18\x08 \x01(\x12\x12\x10\n\x08overflow\x18\t \x01(\x12 \x12\x0c\n\x04mean\x18\n \x01(\x01\x12 \n\x18sum_of_squared_deviation\x18\x0b \x 01(\x01\"\x91\x01\n\x08SpecType\x12\x19\n\x15\x43\x41NONICAL_POWERS_OF_2\x10\x01 \x12 \n\x1c\x43\x41NONICAL_POWERS_OF_10_P_0_2\x10\x02\x12\x1a\n\x16\x43\x41NONIC AL_POWERS_OF_10\x10\x03\x12\x18\n\x14\x43USTOM_PARAMETERIZED\x10\x14\x12\x12\n\x 0e\x43USTOM_BOUNDED\x10\x15\"\xe6\x05\n\x0bMetricsData\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x1a\n\x12metric_name_prefix\x18\x02 \x01(\t\x12\x33\n\x0enetwork_de vice\x18\x0b \x01(\x0b\x32\x1b.ts_mon.proto.NetworkDevice\x12 \n\x04task\x18\x0c \x01(\x0b\x32\x12.ts_mon.proto.Task\x12*\n\x06\x66ields\x18\x14 \x03(\x0b\x32\x 1a.ts_mon.proto.MetricsField\x12\x0f\n\x07\x63ounter\x18\x1e \x01(\x03\x12\r\n\x 05gauge\x18 \x01(\x03\x12\"\n\x1anoncumulative_double_value\x18\" \x01(\x01\x12 ;\n\x0c\x64istribution\x18# \x01(\x0b\x32%.ts_mon.proto.PrecomputedDistribution\ x12\x14\n\x0cstring_value\x18$ \x01(\t\x12\x15\n\rboolean_value\x18% \x01(\x08\x 12\x1f\n\x17\x63umulative_double_value\x18& \x01(\x01\x12\x1a\n\x12start_timesta mp_us\x18( \x01(\x04\x12.\n\x05units\x18) \x01(\x0e\x32\x1f.ts_mon.proto.Metrics Data.Units\x12\x13\n\x0b\x64\x65scription\x18+ \x01(\t\"\xf9\x01\n\x05Units\x12\ x11\n\rUNKNOWN_UNITS\x10\x00\x12\x0b\n\x07SECONDS\x10\x01\x12\x10\n\x0cMILLISECO NDS\x10\x02\x12\x10\n\x0cMICROSECONDS\x10\x03\x12\x0f\n\x0bNANOSECONDS\x10\x04\x 12\x08\n\x04\x42ITS\x10\x15\x12\t\n\x05\x42YTES\x10\x16\x12\r\n\tKILOBYTES\x10\x 1f\x12\r\n\tMEGABYTES\x10 \x12\r\n\tGIGABYTES\x10!\x12\r\n\tKIBIBYTES\x10)\x12\r \n\tMEBIBYTES\x10*\x12\r\n\tGIBIBYTES\x10+\x12\x08\n\x04\x41MPS\x10<\x12\r\n\tMI LLIAMPS\x10=\x12\x13\n\x0f\x44\x45GREES_CELSIUS\x10>')
19 19
20 20
21 21
22 _METRICSFIELD_FIELDTYPE = _descriptor.EnumDescriptor( 22 _METRICSFIELD_FIELDTYPE = _descriptor.EnumDescriptor(
23 name='FieldType', 23 name='FieldType',
24 full_name='ts_mon.proto.MetricsField.FieldType', 24 full_name='ts_mon.proto.MetricsField.FieldType',
25 filename=None, 25 filename=None,
26 file=DESCRIPTOR, 26 file=DESCRIPTOR,
27 values=[ 27 values=[
28 _descriptor.EnumValueDescriptor( 28 _descriptor.EnumValueDescriptor(
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 name='MILLIAMPS', index=14, number=61, 143 name='MILLIAMPS', index=14, number=61,
144 options=None, 144 options=None,
145 type=None), 145 type=None),
146 _descriptor.EnumValueDescriptor( 146 _descriptor.EnumValueDescriptor(
147 name='DEGREES_CELSIUS', index=15, number=62, 147 name='DEGREES_CELSIUS', index=15, number=62,
148 options=None, 148 options=None,
149 type=None), 149 type=None),
150 ], 150 ],
151 containing_type=None, 151 containing_type=None,
152 options=None, 152 options=None,
153 serialized_start=1343, 153 serialized_start=1364,
154 serialized_end=1592, 154 serialized_end=1613,
155 ) 155 )
156 156
157 157
158 _METRICSCOLLECTION = _descriptor.Descriptor( 158 _METRICSCOLLECTION = _descriptor.Descriptor(
159 name='MetricsCollection', 159 name='MetricsCollection',
160 full_name='ts_mon.proto.MetricsCollection', 160 full_name='ts_mon.proto.MetricsCollection',
161 filename=None, 161 filename=None,
162 file=DESCRIPTOR, 162 file=DESCRIPTOR,
163 containing_type=None, 163 containing_type=None,
164 fields=[ 164 fields=[
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 message_type=None, enum_type=None, containing_type=None, 451 message_type=None, enum_type=None, containing_type=None,
452 is_extension=False, extension_scope=None, 452 is_extension=False, extension_scope=None,
453 options=None), 453 options=None),
454 _descriptor.FieldDescriptor( 454 _descriptor.FieldDescriptor(
455 name='units', full_name='ts_mon.proto.MetricsData.units', index=13, 455 name='units', full_name='ts_mon.proto.MetricsData.units', index=13,
456 number=41, type=14, cpp_type=8, label=1, 456 number=41, type=14, cpp_type=8, label=1,
457 has_default_value=False, default_value=0, 457 has_default_value=False, default_value=0,
458 message_type=None, enum_type=None, containing_type=None, 458 message_type=None, enum_type=None, containing_type=None,
459 is_extension=False, extension_scope=None, 459 is_extension=False, extension_scope=None,
460 options=None), 460 options=None),
461 _descriptor.FieldDescriptor(
462 name='description', full_name='ts_mon.proto.MetricsData.description', inde x=14,
463 number=43, type=9, cpp_type=9, label=1,
464 has_default_value=False, default_value=unicode("", "utf-8"),
465 message_type=None, enum_type=None, containing_type=None,
466 is_extension=False, extension_scope=None,
467 options=None),
461 ], 468 ],
462 extensions=[ 469 extensions=[
463 ], 470 ],
464 nested_types=[], 471 nested_types=[],
465 enum_types=[ 472 enum_types=[
466 _METRICSDATA_UNITS, 473 _METRICSDATA_UNITS,
467 ], 474 ],
468 options=None, 475 options=None,
469 is_extendable=False, 476 is_extendable=False,
470 extension_ranges=[], 477 extension_ranges=[],
471 serialized_start=871, 478 serialized_start=871,
472 serialized_end=1592, 479 serialized_end=1613,
473 ) 480 )
474 481
475 _METRICSCOLLECTION.fields_by_name['data'].message_type = _METRICSDATA 482 _METRICSCOLLECTION.fields_by_name['data'].message_type = _METRICSDATA
476 _METRICSFIELD.fields_by_name['type'].enum_type = _METRICSFIELD_FIELDTYPE 483 _METRICSFIELD.fields_by_name['type'].enum_type = _METRICSFIELD_FIELDTYPE
477 _METRICSFIELD_FIELDTYPE.containing_type = _METRICSFIELD; 484 _METRICSFIELD_FIELDTYPE.containing_type = _METRICSFIELD;
478 _PRECOMPUTEDDISTRIBUTION.fields_by_name['spec_type'].enum_type = _PRECOMPUTEDDIS TRIBUTION_SPECTYPE 485 _PRECOMPUTEDDISTRIBUTION.fields_by_name['spec_type'].enum_type = _PRECOMPUTEDDIS TRIBUTION_SPECTYPE
479 _PRECOMPUTEDDISTRIBUTION_SPECTYPE.containing_type = _PRECOMPUTEDDISTRIBUTION; 486 _PRECOMPUTEDDISTRIBUTION_SPECTYPE.containing_type = _PRECOMPUTEDDISTRIBUTION;
480 _METRICSDATA.fields_by_name['network_device'].message_type = acquisition_network _device_pb2._NETWORKDEVICE 487 _METRICSDATA.fields_by_name['network_device'].message_type = acquisition_network _device_pb2._NETWORKDEVICE
481 _METRICSDATA.fields_by_name['task'].message_type = acquisition_task_pb2._TASK 488 _METRICSDATA.fields_by_name['task'].message_type = acquisition_task_pb2._TASK
482 _METRICSDATA.fields_by_name['fields'].message_type = _METRICSFIELD 489 _METRICSDATA.fields_by_name['fields'].message_type = _METRICSFIELD
(...skipping 24 matching lines...) Expand all
507 # @@protoc_insertion_point(class_scope:ts_mon.proto.PrecomputedDistribution) 514 # @@protoc_insertion_point(class_scope:ts_mon.proto.PrecomputedDistribution)
508 515
509 class MetricsData(_message.Message): 516 class MetricsData(_message.Message):
510 __metaclass__ = _reflection.GeneratedProtocolMessageType 517 __metaclass__ = _reflection.GeneratedProtocolMessageType
511 DESCRIPTOR = _METRICSDATA 518 DESCRIPTOR = _METRICSDATA
512 519
513 # @@protoc_insertion_point(class_scope:ts_mon.proto.MetricsData) 520 # @@protoc_insertion_point(class_scope:ts_mon.proto.MetricsData)
514 521
515 522
516 # @@protoc_insertion_point(module_scope) 523 # @@protoc_insertion_point(module_scope)
OLDNEW
« no previous file with comments | « infra_libs/ts_mon/protos/metrics.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698