From cb0e6fd371a2b39266d59fcb810b1170facaf9de Mon Sep 17 00:00:00 2001 From: Lee Avital Date: Fri, 20 Sep 2024 16:16:16 -0400 Subject: [PATCH] Remove python codegen This is safe because the only python consumer (in the backend) copies the protobuf definition from this repo and re-generates python code. --- README.md | 3 +- Rakefile | 3 - python/agent_payload_pb2.py | 930 ------------------------------------ 3 files changed, 1 insertion(+), 935 deletions(-) delete mode 100644 python/agent_payload_pb2.py diff --git a/README.md b/README.md index 924e7a4e..96acbeaf 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Payload format description for communication between the Agent and the Datadog b This repository includes the protocol-buffer IDL used by the agent6 and agent7 to communicate with the Datadog backend. Those payloads are only supported by the V2 API endpoints. -The generated Go, Python and Java implementations are checked into this repository and can be used directly. +The generated Go, and Java implementations are checked into this repository and can be used directly. Other consumers may copy the `.proto` files into their repository and generate their own bindings. # Prerequisites @@ -27,7 +27,6 @@ The following implementations are available: The metrics payload is defined in [`proto/metrics/agent_payload.proto`](./proto/metrics/agent_payload.proto). The following implementations are available: * Go (gogofast): [github.com/DataDog/agent-payload/gogen](https://pkg.go.dev/github.com/DataDog/agent-payload/gogen) - * Python: [`python/agent_payload_pb2.py`](./python/agent_payload_pb2.py) ## Process diff --git a/Rakefile b/Rakefile index 153142a5..98cf7584 100644 --- a/Rakefile +++ b/Rakefile @@ -133,9 +133,6 @@ BASH PATH=#{toolchain_bin_dir} #{protoc_binary} --proto_path=$GOPATH/src:#{gogo_include}:#{toolchain_include_dir}:. --gogofast_out=$GOPATH/src proto/metrics/agent_payload.proto echo "done" - echo "Generating metrics proto (python)" - PATH=#{toolchain_bin_dir} #{protoc_legacy_binary} --proto_path=#{toolchain_legacy_include_dir}:#{gogo_include}:./proto/metrics --python_out=python agent_payload.proto - echo "Generating process proto (go)" PATH=#{toolchain_bin_dir} #{protoc_binary} --proto_path=#{toolchain_include_dir}:#{gogo_include}:. --gogofaster_out=$GOPATH/src proto/process/*.proto diff --git a/python/agent_payload_pb2.py b/python/agent_payload_pb2.py deleted file mode 100644 index c2c74124..00000000 --- a/python/agent_payload_pb2.py +++ /dev/null @@ -1,930 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: agent_payload.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -from google.protobuf import descriptor_pb2 -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from github.com.gogo.protobuf.gogoproto import gogo_pb2 as github_dot_com_dot_gogo_dot_protobuf_dot_gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='agent_payload.proto', - package='datadog.agentpayload', - syntax='proto3', - serialized_pb=_b('\n\x13\x61gent_payload.proto\x12\x14\x64\x61tadog.agentpayload\x1a-github.com/gogo/protobuf/gogoproto/gogo.proto\"\x89\x01\n\x0e\x43ommonMetadata\x12\x15\n\ragent_version\x18\x01 \x01(\t\x12\x10\n\x08timezone\x18\x02 \x01(\t\x12\x15\n\rcurrent_epoch\x18\x03 \x01(\x01\x12\x13\n\x0binternal_ip\x18\x04 \x01(\t\x12\x11\n\tpublic_ip\x18\x05 \x01(\t\x12\x0f\n\x07\x61pi_key\x18\x06 \x01(\t\"c\n\x06Origin\x12\x16\n\x0eorigin_product\x18\x04 \x01(\r\x12\x17\n\x0forigin_category\x18\x05 \x01(\r\x12\x16\n\x0eorigin_service\x18\x06 \x01(\rJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04\"8\n\x08Metadata\x12,\n\x06origin\x18\x01 \x01(\x0b\x32\x1c.datadog.agentpayload.Origin\"\xc4\x04\n\rMetricPayload\x12@\n\x06series\x18\x01 \x03(\x0b\x32\x30.datadog.agentpayload.MetricPayload.MetricSeries\x1a/\n\x0bMetricPoint\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x1a&\n\x08Resource\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x1a\xd8\x02\n\x0cMetricSeries\x12?\n\tresources\x18\x01 \x03(\x0b\x32,.datadog.agentpayload.MetricPayload.Resource\x12\x0e\n\x06metric\x18\x02 \x01(\t\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12?\n\x06points\x18\x04 \x03(\x0b\x32/.datadog.agentpayload.MetricPayload.MetricPoint\x12<\n\x04type\x18\x05 \x01(\x0e\x32..datadog.agentpayload.MetricPayload.MetricType\x12\x0c\n\x04unit\x18\x06 \x01(\t\x12\x18\n\x10source_type_name\x18\x07 \x01(\t\x12\x10\n\x08interval\x18\x08 \x01(\x03\x12\x30\n\x08metadata\x18\t \x01(\x0b\x32\x1e.datadog.agentpayload.Metadata\"=\n\nMetricType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\t\n\x05\x43OUNT\x10\x01\x12\x08\n\x04RATE\x10\x02\x12\t\n\x05GAUGE\x10\x03\"\xaa\x02\n\rEventsPayload\x12\x39\n\x06\x65vents\x18\x01 \x03(\x0b\x32).datadog.agentpayload.EventsPayload.Event\x12\x36\n\x08metadata\x18\x02 \x01(\x0b\x32$.datadog.agentpayload.CommonMetadata\x1a\xa5\x01\n\x05\x45vent\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\x12\n\n\x02ts\x18\x03 \x01(\x03\x12\x10\n\x08priority\x18\x04 \x01(\t\x12\x0c\n\x04host\x18\x05 \x01(\t\x12\x0c\n\x04tags\x18\x06 \x03(\t\x12\x12\n\nalert_type\x18\x07 \x01(\t\x12\x17\n\x0f\x61ggregation_key\x18\x08 \x01(\t\x12\x18\n\x10source_type_name\x18\t \x01(\t\"\xcd\x05\n\rSketchPayload\x12\x42\n\x08sketches\x18\x01 \x03(\x0b\x32*.datadog.agentpayload.SketchPayload.SketchB\x04\xc8\xde\x1f\x00\x12<\n\x08metadata\x18\x02 \x01(\x0b\x32$.datadog.agentpayload.CommonMetadataB\x04\xc8\xde\x1f\x00\x1a\xb9\x04\n\x06Sketch\x12\x0e\n\x06metric\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12T\n\rdistributions\x18\x03 \x03(\x0b\x32\x37.datadog.agentpayload.SketchPayload.Sketch.DistributionB\x04\xc8\xde\x1f\x00\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12O\n\x0b\x64ogsketches\x18\x07 \x03(\x0b\x32\x34.datadog.agentpayload.SketchPayload.Sketch.DogsketchB\x04\xc8\xde\x1f\x00\x12\x30\n\x08metadata\x18\x08 \x01(\x0b\x32\x1e.datadog.agentpayload.Metadata\x1a\x8d\x01\n\x0c\x44istribution\x12\n\n\x02ts\x18\x01 \x01(\x03\x12\x0b\n\x03\x63nt\x18\x02 \x01(\x03\x12\x0b\n\x03min\x18\x03 \x01(\x01\x12\x0b\n\x03max\x18\x04 \x01(\x01\x12\x0b\n\x03\x61vg\x18\x05 \x01(\x01\x12\x0b\n\x03sum\x18\x06 \x01(\x01\x12\t\n\x01v\x18\x07 \x03(\x01\x12\t\n\x01g\x18\x08 \x03(\r\x12\r\n\x05\x64\x65lta\x18\t \x03(\r\x12\x0b\n\x03\x62uf\x18\n \x03(\x01\x1an\n\tDogsketch\x12\n\n\x02ts\x18\x01 \x01(\x03\x12\x0b\n\x03\x63nt\x18\x02 \x01(\x03\x12\x0b\n\x03min\x18\x03 \x01(\x01\x12\x0b\n\x03max\x18\x04 \x01(\x01\x12\x0b\n\x03\x61vg\x18\x05 \x01(\x01\x12\x0b\n\x03sum\x18\x06 \x01(\x01\x12\t\n\x01k\x18\x07 \x03(\x11\x12\t\n\x01n\x18\x08 \x03(\rJ\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07R\x0e\x64istributionsKR\x0e\x64istributionsCB+Z)github.com/DataDog/agent-payload/v5/gogenb\x06proto3') - , - dependencies=[github_dot_com_dot_gogo_dot_protobuf_dot_gogoproto_dot_gogo__pb2.DESCRIPTOR,]) - - - -_METRICPAYLOAD_METRICTYPE = _descriptor.EnumDescriptor( - name='MetricType', - full_name='datadog.agentpayload.MetricPayload.MetricType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='COUNT', index=1, number=1, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RATE', index=2, number=2, - options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GAUGE', index=3, number=3, - options=None, - type=None), - ], - containing_type=None, - options=None, - serialized_start=911, - serialized_end=972, -) -_sym_db.RegisterEnumDescriptor(_METRICPAYLOAD_METRICTYPE) - - -_COMMONMETADATA = _descriptor.Descriptor( - name='CommonMetadata', - full_name='datadog.agentpayload.CommonMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='agent_version', full_name='datadog.agentpayload.CommonMetadata.agent_version', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timezone', full_name='datadog.agentpayload.CommonMetadata.timezone', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_epoch', full_name='datadog.agentpayload.CommonMetadata.current_epoch', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='internal_ip', full_name='datadog.agentpayload.CommonMetadata.internal_ip', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='public_ip', full_name='datadog.agentpayload.CommonMetadata.public_ip', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='api_key', full_name='datadog.agentpayload.CommonMetadata.api_key', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=93, - serialized_end=230, -) - - -_ORIGIN = _descriptor.Descriptor( - name='Origin', - full_name='datadog.agentpayload.Origin', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='origin_product', full_name='datadog.agentpayload.Origin.origin_product', index=0, - number=4, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='origin_category', full_name='datadog.agentpayload.Origin.origin_category', index=1, - number=5, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='origin_service', full_name='datadog.agentpayload.Origin.origin_service', index=2, - number=6, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=232, - serialized_end=331, -) - - -_METADATA = _descriptor.Descriptor( - name='Metadata', - full_name='datadog.agentpayload.Metadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='origin', full_name='datadog.agentpayload.Metadata.origin', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=333, - serialized_end=389, -) - - -_METRICPAYLOAD_METRICPOINT = _descriptor.Descriptor( - name='MetricPoint', - full_name='datadog.agentpayload.MetricPayload.MetricPoint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='value', full_name='datadog.agentpayload.MetricPayload.MetricPoint.value', index=0, - number=1, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamp', full_name='datadog.agentpayload.MetricPayload.MetricPoint.timestamp', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=475, - serialized_end=522, -) - -_METRICPAYLOAD_RESOURCE = _descriptor.Descriptor( - name='Resource', - full_name='datadog.agentpayload.MetricPayload.Resource', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='datadog.agentpayload.MetricPayload.Resource.type', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='datadog.agentpayload.MetricPayload.Resource.name', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=524, - serialized_end=562, -) - -_METRICPAYLOAD_METRICSERIES = _descriptor.Descriptor( - name='MetricSeries', - full_name='datadog.agentpayload.MetricPayload.MetricSeries', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resources', full_name='datadog.agentpayload.MetricPayload.MetricSeries.resources', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metric', full_name='datadog.agentpayload.MetricPayload.MetricSeries.metric', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tags', full_name='datadog.agentpayload.MetricPayload.MetricSeries.tags', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='points', full_name='datadog.agentpayload.MetricPayload.MetricSeries.points', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='datadog.agentpayload.MetricPayload.MetricSeries.type', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='unit', full_name='datadog.agentpayload.MetricPayload.MetricSeries.unit', index=5, - number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_type_name', full_name='datadog.agentpayload.MetricPayload.MetricSeries.source_type_name', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interval', full_name='datadog.agentpayload.MetricPayload.MetricSeries.interval', index=7, - number=8, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='datadog.agentpayload.MetricPayload.MetricSeries.metadata', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=565, - serialized_end=909, -) - -_METRICPAYLOAD = _descriptor.Descriptor( - name='MetricPayload', - full_name='datadog.agentpayload.MetricPayload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='series', full_name='datadog.agentpayload.MetricPayload.series', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_METRICPAYLOAD_METRICPOINT, _METRICPAYLOAD_RESOURCE, _METRICPAYLOAD_METRICSERIES, ], - enum_types=[ - _METRICPAYLOAD_METRICTYPE, - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=392, - serialized_end=972, -) - - -_EVENTSPAYLOAD_EVENT = _descriptor.Descriptor( - name='Event', - full_name='datadog.agentpayload.EventsPayload.Event', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='title', full_name='datadog.agentpayload.EventsPayload.Event.title', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text', full_name='datadog.agentpayload.EventsPayload.Event.text', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ts', full_name='datadog.agentpayload.EventsPayload.Event.ts', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='priority', full_name='datadog.agentpayload.EventsPayload.Event.priority', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='host', full_name='datadog.agentpayload.EventsPayload.Event.host', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tags', full_name='datadog.agentpayload.EventsPayload.Event.tags', index=5, - number=6, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alert_type', full_name='datadog.agentpayload.EventsPayload.Event.alert_type', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aggregation_key', full_name='datadog.agentpayload.EventsPayload.Event.aggregation_key', index=7, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_type_name', full_name='datadog.agentpayload.EventsPayload.Event.source_type_name', index=8, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1108, - serialized_end=1273, -) - -_EVENTSPAYLOAD = _descriptor.Descriptor( - name='EventsPayload', - full_name='datadog.agentpayload.EventsPayload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='events', full_name='datadog.agentpayload.EventsPayload.events', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='datadog.agentpayload.EventsPayload.metadata', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_EVENTSPAYLOAD_EVENT, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=975, - serialized_end=1273, -) - - -_SKETCHPAYLOAD_SKETCH_DISTRIBUTION = _descriptor.Descriptor( - name='Distribution', - full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ts', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.ts', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cnt', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.cnt', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.min', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.max', index=3, - number=4, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='avg', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.avg', index=4, - number=5, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sum', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.sum', index=5, - number=6, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='v', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.v', index=6, - number=7, type=1, cpp_type=5, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='g', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.g', index=7, - number=8, type=13, cpp_type=3, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delta', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.delta', index=8, - number=9, type=13, cpp_type=3, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='buf', full_name='datadog.agentpayload.SketchPayload.Sketch.Distribution.buf', index=9, - number=10, type=1, cpp_type=5, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1696, - serialized_end=1837, -) - -_SKETCHPAYLOAD_SKETCH_DOGSKETCH = _descriptor.Descriptor( - name='Dogsketch', - full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ts', full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch.ts', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cnt', full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch.cnt', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='min', full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch.min', index=2, - number=3, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='max', full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch.max', index=3, - number=4, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='avg', full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch.avg', index=4, - number=5, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sum', full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch.sum', index=5, - number=6, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='k', full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch.k', index=6, - number=7, type=17, cpp_type=1, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='n', full_name='datadog.agentpayload.SketchPayload.Sketch.Dogsketch.n', index=7, - number=8, type=13, cpp_type=3, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1839, - serialized_end=1949, -) - -_SKETCHPAYLOAD_SKETCH = _descriptor.Descriptor( - name='Sketch', - full_name='datadog.agentpayload.SketchPayload.Sketch', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='metric', full_name='datadog.agentpayload.SketchPayload.Sketch.metric', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='host', full_name='datadog.agentpayload.SketchPayload.Sketch.host', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='distributions', full_name='datadog.agentpayload.SketchPayload.Sketch.distributions', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')), file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tags', full_name='datadog.agentpayload.SketchPayload.Sketch.tags', index=3, - number=4, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dogsketches', full_name='datadog.agentpayload.SketchPayload.Sketch.dogsketches', index=4, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')), file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='datadog.agentpayload.SketchPayload.Sketch.metadata', index=5, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SKETCHPAYLOAD_SKETCH_DISTRIBUTION, _SKETCHPAYLOAD_SKETCH_DOGSKETCH, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1424, - serialized_end=1993, -) - -_SKETCHPAYLOAD = _descriptor.Descriptor( - name='SketchPayload', - full_name='datadog.agentpayload.SketchPayload', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sketches', full_name='datadog.agentpayload.SketchPayload.sketches', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')), file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='datadog.agentpayload.SketchPayload.metadata', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')), file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SKETCHPAYLOAD_SKETCH, ], - enum_types=[ - ], - options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1276, - serialized_end=1993, -) - -_METADATA.fields_by_name['origin'].message_type = _ORIGIN -_METRICPAYLOAD_METRICPOINT.containing_type = _METRICPAYLOAD -_METRICPAYLOAD_RESOURCE.containing_type = _METRICPAYLOAD -_METRICPAYLOAD_METRICSERIES.fields_by_name['resources'].message_type = _METRICPAYLOAD_RESOURCE -_METRICPAYLOAD_METRICSERIES.fields_by_name['points'].message_type = _METRICPAYLOAD_METRICPOINT -_METRICPAYLOAD_METRICSERIES.fields_by_name['type'].enum_type = _METRICPAYLOAD_METRICTYPE -_METRICPAYLOAD_METRICSERIES.fields_by_name['metadata'].message_type = _METADATA -_METRICPAYLOAD_METRICSERIES.containing_type = _METRICPAYLOAD -_METRICPAYLOAD.fields_by_name['series'].message_type = _METRICPAYLOAD_METRICSERIES -_METRICPAYLOAD_METRICTYPE.containing_type = _METRICPAYLOAD -_EVENTSPAYLOAD_EVENT.containing_type = _EVENTSPAYLOAD -_EVENTSPAYLOAD.fields_by_name['events'].message_type = _EVENTSPAYLOAD_EVENT -_EVENTSPAYLOAD.fields_by_name['metadata'].message_type = _COMMONMETADATA -_SKETCHPAYLOAD_SKETCH_DISTRIBUTION.containing_type = _SKETCHPAYLOAD_SKETCH -_SKETCHPAYLOAD_SKETCH_DOGSKETCH.containing_type = _SKETCHPAYLOAD_SKETCH -_SKETCHPAYLOAD_SKETCH.fields_by_name['distributions'].message_type = _SKETCHPAYLOAD_SKETCH_DISTRIBUTION -_SKETCHPAYLOAD_SKETCH.fields_by_name['dogsketches'].message_type = _SKETCHPAYLOAD_SKETCH_DOGSKETCH -_SKETCHPAYLOAD_SKETCH.fields_by_name['metadata'].message_type = _METADATA -_SKETCHPAYLOAD_SKETCH.containing_type = _SKETCHPAYLOAD -_SKETCHPAYLOAD.fields_by_name['sketches'].message_type = _SKETCHPAYLOAD_SKETCH -_SKETCHPAYLOAD.fields_by_name['metadata'].message_type = _COMMONMETADATA -DESCRIPTOR.message_types_by_name['CommonMetadata'] = _COMMONMETADATA -DESCRIPTOR.message_types_by_name['Origin'] = _ORIGIN -DESCRIPTOR.message_types_by_name['Metadata'] = _METADATA -DESCRIPTOR.message_types_by_name['MetricPayload'] = _METRICPAYLOAD -DESCRIPTOR.message_types_by_name['EventsPayload'] = _EVENTSPAYLOAD -DESCRIPTOR.message_types_by_name['SketchPayload'] = _SKETCHPAYLOAD -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CommonMetadata = _reflection.GeneratedProtocolMessageType('CommonMetadata', (_message.Message,), dict( - DESCRIPTOR = _COMMONMETADATA, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.CommonMetadata) - )) -_sym_db.RegisterMessage(CommonMetadata) - -Origin = _reflection.GeneratedProtocolMessageType('Origin', (_message.Message,), dict( - DESCRIPTOR = _ORIGIN, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.Origin) - )) -_sym_db.RegisterMessage(Origin) - -Metadata = _reflection.GeneratedProtocolMessageType('Metadata', (_message.Message,), dict( - DESCRIPTOR = _METADATA, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.Metadata) - )) -_sym_db.RegisterMessage(Metadata) - -MetricPayload = _reflection.GeneratedProtocolMessageType('MetricPayload', (_message.Message,), dict( - - MetricPoint = _reflection.GeneratedProtocolMessageType('MetricPoint', (_message.Message,), dict( - DESCRIPTOR = _METRICPAYLOAD_METRICPOINT, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.MetricPayload.MetricPoint) - )) - , - - Resource = _reflection.GeneratedProtocolMessageType('Resource', (_message.Message,), dict( - DESCRIPTOR = _METRICPAYLOAD_RESOURCE, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.MetricPayload.Resource) - )) - , - - MetricSeries = _reflection.GeneratedProtocolMessageType('MetricSeries', (_message.Message,), dict( - DESCRIPTOR = _METRICPAYLOAD_METRICSERIES, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.MetricPayload.MetricSeries) - )) - , - DESCRIPTOR = _METRICPAYLOAD, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.MetricPayload) - )) -_sym_db.RegisterMessage(MetricPayload) -_sym_db.RegisterMessage(MetricPayload.MetricPoint) -_sym_db.RegisterMessage(MetricPayload.Resource) -_sym_db.RegisterMessage(MetricPayload.MetricSeries) - -EventsPayload = _reflection.GeneratedProtocolMessageType('EventsPayload', (_message.Message,), dict( - - Event = _reflection.GeneratedProtocolMessageType('Event', (_message.Message,), dict( - DESCRIPTOR = _EVENTSPAYLOAD_EVENT, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.EventsPayload.Event) - )) - , - DESCRIPTOR = _EVENTSPAYLOAD, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.EventsPayload) - )) -_sym_db.RegisterMessage(EventsPayload) -_sym_db.RegisterMessage(EventsPayload.Event) - -SketchPayload = _reflection.GeneratedProtocolMessageType('SketchPayload', (_message.Message,), dict( - - Sketch = _reflection.GeneratedProtocolMessageType('Sketch', (_message.Message,), dict( - - Distribution = _reflection.GeneratedProtocolMessageType('Distribution', (_message.Message,), dict( - DESCRIPTOR = _SKETCHPAYLOAD_SKETCH_DISTRIBUTION, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.SketchPayload.Sketch.Distribution) - )) - , - - Dogsketch = _reflection.GeneratedProtocolMessageType('Dogsketch', (_message.Message,), dict( - DESCRIPTOR = _SKETCHPAYLOAD_SKETCH_DOGSKETCH, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.SketchPayload.Sketch.Dogsketch) - )) - , - DESCRIPTOR = _SKETCHPAYLOAD_SKETCH, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.SketchPayload.Sketch) - )) - , - DESCRIPTOR = _SKETCHPAYLOAD, - __module__ = 'agent_payload_pb2' - # @@protoc_insertion_point(class_scope:datadog.agentpayload.SketchPayload) - )) -_sym_db.RegisterMessage(SketchPayload) -_sym_db.RegisterMessage(SketchPayload.Sketch) -_sym_db.RegisterMessage(SketchPayload.Sketch.Distribution) -_sym_db.RegisterMessage(SketchPayload.Sketch.Dogsketch) - - -DESCRIPTOR.has_options = True -DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z)github.com/DataDog/agent-payload/v5/gogen')) -_SKETCHPAYLOAD_SKETCH.fields_by_name['distributions'].has_options = True -_SKETCHPAYLOAD_SKETCH.fields_by_name['distributions']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')) -_SKETCHPAYLOAD_SKETCH.fields_by_name['dogsketches'].has_options = True -_SKETCHPAYLOAD_SKETCH.fields_by_name['dogsketches']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')) -_SKETCHPAYLOAD.fields_by_name['sketches'].has_options = True -_SKETCHPAYLOAD.fields_by_name['sketches']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')) -_SKETCHPAYLOAD.fields_by_name['metadata'].has_options = True -_SKETCHPAYLOAD.fields_by_name['metadata']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')) -# @@protoc_insertion_point(module_scope)