Class: Datadog::DataStreams::Transport::HTTP::Stats::API::Instance
- Inherits:
-
Core::Transport::HTTP::API::Instance
- Object
- Core::Transport::HTTP::API::Instance
- Datadog::DataStreams::Transport::HTTP::Stats::API::Instance
- Defined in:
- lib/datadog/data_streams/transport/http/stats.rb
Overview
HTTP API Instance for DSM
Instance Attribute Summary
Attributes inherited from Core::Transport::HTTP::API::Instance
Instance Method Summary collapse
Methods inherited from Core::Transport::HTTP::API::Instance
Constructor Details
This class inherits a constructor from Datadog::Core::Transport::HTTP::API::Instance
Instance Method Details
#send_stats(env) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/datadog/data_streams/transport/http/stats.rb', line 45 def send_stats(env) unless spec.is_a?(Stats::API::Spec) raise Core::Transport::HTTP::API::Instance::EndpointNotSupportedError.new( 'stats', self ) end spec.send_stats(env) do |request_env| call(request_env) end end |