Module: Datadog::Profiling::Transport::HTTP::API
- Defined in:
- lib/ddtrace/profiling/transport/http/api.rb,
lib/ddtrace/profiling/transport/http/api/spec.rb,
lib/ddtrace/profiling/transport/http/api/endpoint.rb,
lib/ddtrace/profiling/transport/http/api/instance.rb
Overview
Extensions for HTTP API Spec
Defined Under Namespace
Classes: Endpoint, Instance, Spec
Constant Summary collapse
- V1 =
Default API versions
'v1'.freeze
Class Method Summary collapse
Class Method Details
.agent_defaults ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ddtrace/profiling/transport/http/api.rb', line 19 def agent_defaults @agent_defaults ||= Datadog::Transport::HTTP::API::Map[ V1 => Spec.new do |s| s.profiles = Endpoint.new( '/profiling/v1/input'.freeze, Profiling::Encoding::Profile::Protobuf ) end ] end |
.api_defaults ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/ddtrace/profiling/transport/http/api.rb', line 30 def api_defaults @api_defaults ||= Datadog::Transport::HTTP::API::Map[ V1 => Spec.new do |s| s.profiles = Endpoint.new( '/v1/input'.freeze, Profiling::Encoding::Profile::Protobuf ) end ] end |