Class: Datadog::Profiling::Transport::HTTP::API::Spec
- Inherits:
-
Transport::HTTP::API::Spec
- Object
- Transport::HTTP::API::Spec
- Datadog::Profiling::Transport::HTTP::API::Spec
- Defined in:
- lib/ddtrace/profiling/transport/http/api/spec.rb
Overview
API specification for profiling
Defined Under Namespace
Classes: NoProfilesEndpointDefinedError
Instance Attribute Summary collapse
-
#profiles ⇒ Object
Returns the value of attribute profiles.
Instance Method Summary collapse
Methods inherited from Transport::HTTP::API::Spec
Constructor Details
This class inherits a constructor from Datadog::Transport::HTTP::API::Spec
Instance Attribute Details
#profiles ⇒ Object
Returns the value of attribute profiles.
11 12 13 |
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 11 def profiles @profiles end |
Instance Method Details
#encoder ⇒ Object
20 21 22 |
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 20 def encoder profiles.encoder end |
#send_profiling_flush(env, &block) ⇒ Object
14 15 16 17 18 |
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 14 def send_profiling_flush(env, &block) raise NoProfilesEndpointDefinedError, self if profiles.nil? profiles.call(env, &block) end |