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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra_libs/ts_mon/protos/metrics.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/protos/metrics_pb2.py
diff --git a/infra_libs/ts_mon/protos/metrics_pb2.py b/infra_libs/ts_mon/protos/metrics_pb2.py
index 84389b2e0159cec9e70cb5fa4802c9057eecf67d..ac1d3f17205166a4ff5b6d5fff40488c7cc9553c 100644
--- a/infra_libs/ts_mon/protos/metrics_pb2.py
+++ b/infra_libs/ts_mon/protos/metrics_pb2.py
@@ -15,7 +15,7 @@ import acquisition_task_pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='metrics.proto',
package='ts_mon.proto',
- serialized_pb='\n\rmetrics.proto\x12\x0cts_mon.proto\x1a acquisition_network_device.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\x12start_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\x04type\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\x12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\"\xcf\x03\n\x17PrecomputedDistribution\x12\x41\n\tspec_type\x18\x01 \x01(\x0e\x32..ts_mon.proto.PrecomputedDistribution.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 \x01(\x05:\x02\x31\x30\x12\x14\n\x0clower_bounds\x18\x05 \x03(\x01\x12\x1c\n\ris_cumulative\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 \x01(\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\x41NONICAL_POWERS_OF_10\x10\x03\x12\x18\n\x14\x43USTOM_PARAMETERIZED\x10\x14\x12\x12\n\x0e\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_device\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\x1a.ts_mon.proto.MetricsField\x12\x0f\n\x07\x63ounter\x18\x1e \x01(\x03\x12\r\n\x05gauge\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\x12\x1f\n\x17\x63umulative_double_value\x18& \x01(\x01\x12\x1a\n\x12start_timestamp_us\x18( \x01(\x04\x12.\n\x05units\x18) \x01(\x0e\x32\x1f.ts_mon.proto.MetricsData.Units\"\xf9\x01\n\x05Units\x12\x11\n\rUNKNOWN_UNITS\x10\x00\x12\x0b\n\x07SECONDS\x10\x01\x12\x10\n\x0cMILLISECONDS\x10\x02\x12\x10\n\x0cMICROSECONDS\x10\x03\x12\x0f\n\x0bNANOSECONDS\x10\x04\x12\x08\n\x04\x42ITS\x10\x15\x12\t\n\x05\x42YTES\x10\x16\x12\r\n\tKILOBYTES\x10\x1f\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\tMILLIAMPS\x10=\x12\x13\n\x0f\x44\x45GREES_CELSIUS\x10>')
+ serialized_pb='\n\rmetrics.proto\x12\x0cts_mon.proto\x1a acquisition_network_device.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\x12start_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\x04type\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\x12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\"\xcf\x03\n\x17PrecomputedDistribution\x12\x41\n\tspec_type\x18\x01 \x01(\x0e\x32..ts_mon.proto.PrecomputedDistribution.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 \x01(\x05:\x02\x31\x30\x12\x14\n\x0clower_bounds\x18\x05 \x03(\x01\x12\x1c\n\ris_cumulative\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 \x01(\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\x41NONICAL_POWERS_OF_10\x10\x03\x12\x18\n\x14\x43USTOM_PARAMETERIZED\x10\x14\x12\x12\n\x0e\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_device\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\x1a.ts_mon.proto.MetricsField\x12\x0f\n\x07\x63ounter\x18\x1e \x01(\x03\x12\r\n\x05gauge\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\x12\x1f\n\x17\x63umulative_double_value\x18& \x01(\x01\x12\x1a\n\x12start_timestamp_us\x18( \x01(\x04\x12.\n\x05units\x18) \x01(\x0e\x32\x1f.ts_mon.proto.MetricsData.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\x0cMILLISECONDS\x10\x02\x12\x10\n\x0cMICROSECONDS\x10\x03\x12\x0f\n\x0bNANOSECONDS\x10\x04\x12\x08\n\x04\x42ITS\x10\x15\x12\t\n\x05\x42YTES\x10\x16\x12\r\n\tKILOBYTES\x10\x1f\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\tMILLIAMPS\x10=\x12\x13\n\x0f\x44\x45GREES_CELSIUS\x10>')
@@ -150,8 +150,8 @@ _METRICSDATA_UNITS = _descriptor.EnumDescriptor(
],
containing_type=None,
options=None,
- serialized_start=1343,
- serialized_end=1592,
+ serialized_start=1364,
+ serialized_end=1613,
)
@@ -458,6 +458,13 @@ _METRICSDATA = _descriptor.Descriptor(
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
+ _descriptor.FieldDescriptor(
+ name='description', full_name='ts_mon.proto.MetricsData.description', index=14,
+ number=43, type=9, cpp_type=9, label=1,
+ has_default_value=False, default_value=unicode("", "utf-8"),
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None),
],
extensions=[
],
@@ -469,7 +476,7 @@ _METRICSDATA = _descriptor.Descriptor(
is_extendable=False,
extension_ranges=[],
serialized_start=871,
- serialized_end=1592,
+ serialized_end=1613,
)
_METRICSCOLLECTION.fields_by_name['data'].message_type = _METRICSDATA
« 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