Class: Datadog::Core::Remote::Transport::Negotiation::Transport
- Inherits:
-
Object
- Object
- Datadog::Core::Remote::Transport::Negotiation::Transport
- Defined in:
- lib/datadog/core/remote/transport/negotiation.rb
Overview
Negotiation transport
Instance Attribute Summary collapse
-
#apis ⇒ Object
readonly
Returns the value of attribute apis.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#current_api_id ⇒ Object
readonly
Returns the value of attribute current_api_id.
-
#default_api ⇒ Object
readonly
Returns the value of attribute default_api.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #current_api ⇒ Object
-
#initialize(apis, default_api, logger: Datadog.logger) ⇒ Transport
constructor
A new instance of Transport.
- #send_info ⇒ Object
Constructor Details
#initialize(apis, default_api, logger: Datadog.logger) ⇒ Transport
Returns a new instance of Transport.
54 55 56 57 58 59 |
# File 'lib/datadog/core/remote/transport/negotiation.rb', line 54 def initialize(apis, default_api, logger: Datadog.logger) @apis = apis @logger = logger @client = HTTP::Client.new(current_api, logger: logger) end |
Instance Attribute Details
#apis ⇒ Object (readonly)
Returns the value of attribute apis.
52 53 54 |
# File 'lib/datadog/core/remote/transport/negotiation.rb', line 52 def apis @apis end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
52 53 54 |
# File 'lib/datadog/core/remote/transport/negotiation.rb', line 52 def client @client end |
#current_api_id ⇒ Object (readonly)
Returns the value of attribute current_api_id.
52 53 54 |
# File 'lib/datadog/core/remote/transport/negotiation.rb', line 52 def current_api_id @current_api_id end |
#default_api ⇒ Object (readonly)
Returns the value of attribute default_api.
52 53 54 |
# File 'lib/datadog/core/remote/transport/negotiation.rb', line 52 def default_api @default_api end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
52 53 54 |
# File 'lib/datadog/core/remote/transport/negotiation.rb', line 52 def logger @logger end |