Class: Datadog::Core::Telemetry::Http::Transport
- Inherits:
-
Object
- Object
- Datadog::Core::Telemetry::Http::Transport
- Defined in:
- lib/datadog/core/telemetry/http/transport.rb
Overview
Class to send telemetry data to Telemetry API Currently only supports the HTTP protocol.
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#ssl ⇒ Object
readonly
Returns the value of attribute ssl.
Instance Method Summary collapse
-
#initialize ⇒ Transport
constructor
A new instance of Transport.
- #request(request_type:, payload:) ⇒ Object
Constructor Details
#initialize ⇒ Transport
Returns a new instance of Transport.
22 23 24 25 26 27 28 |
# File 'lib/datadog/core/telemetry/http/transport.rb', line 22 def initialize agent_settings = Configuration::AgentSettingsResolver.call(Datadog.configuration) @host = agent_settings.hostname @port = agent_settings.port @ssl = false @path = Http::Ext::AGENT_ENDPOINT end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
16 17 18 |
# File 'lib/datadog/core/telemetry/http/transport.rb', line 16 def host @host end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
16 17 18 |
# File 'lib/datadog/core/telemetry/http/transport.rb', line 16 def path @path end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
16 17 18 |
# File 'lib/datadog/core/telemetry/http/transport.rb', line 16 def port @port end |
#ssl ⇒ Object (readonly)
Returns the value of attribute ssl.
16 17 18 |
# File 'lib/datadog/core/telemetry/http/transport.rb', line 16 def ssl @ssl end |