Class: Datadog::Configuration::AgentSettingsResolver::AgentSettings
- Inherits:
-
Struct
- Object
- Struct
- Datadog::Configuration::AgentSettingsResolver::AgentSettings
- Defined in:
- lib/ddtrace/configuration/agent_settings_resolver.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#deprecated_for_removal_transport_configuration_options ⇒ Object
Returns the value of attribute deprecated_for_removal_transport_configuration_options.
-
#deprecated_for_removal_transport_configuration_proc ⇒ Object
Returns the value of attribute deprecated_for_removal_transport_configuration_proc.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#port ⇒ Object
Returns the value of attribute port.
-
#ssl ⇒ Object
Returns the value of attribute ssl.
-
#timeout_seconds ⇒ Object
Returns the value of attribute timeout_seconds.
-
#uds_path ⇒ Object
Returns the value of attribute uds_path.
Instance Method Summary collapse
-
#initialize(adapter:, ssl:, hostname:, port:, uds_path:, timeout_seconds:, deprecated_for_removal_transport_configuration_proc:, deprecated_for_removal_transport_configuration_options:) ⇒ AgentSettings
constructor
A new instance of AgentSettings.
-
#merge(**member_values) ⇒ Object
Returns a frozen copy of this struct with the provided +member_values+ modified.
Constructor Details
#initialize(adapter:, ssl:, hostname:, port:, uds_path:, timeout_seconds:, deprecated_for_removal_transport_configuration_proc:, deprecated_for_removal_transport_configuration_options:) ⇒ AgentSettings
Returns a new instance of AgentSettings.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 32 def initialize( adapter:, ssl:, hostname:, port:, uds_path:, timeout_seconds:, deprecated_for_removal_transport_configuration_proc:, deprecated_for_removal_transport_configuration_options: ) super( adapter, ssl, hostname, port, uds_path, timeout_seconds, deprecated_for_removal_transport_configuration_proc, , ) freeze end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter
21 22 23 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 21 def adapter @adapter end |
#deprecated_for_removal_transport_configuration_options ⇒ Object
Returns the value of attribute deprecated_for_removal_transport_configuration_options
21 22 23 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 21 def @deprecated_for_removal_transport_configuration_options end |
#deprecated_for_removal_transport_configuration_proc ⇒ Object
Returns the value of attribute deprecated_for_removal_transport_configuration_proc
21 22 23 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 21 def deprecated_for_removal_transport_configuration_proc @deprecated_for_removal_transport_configuration_proc end |
#hostname ⇒ Object
Returns the value of attribute hostname
21 22 23 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 21 def hostname @hostname end |
#port ⇒ Object
Returns the value of attribute port
21 22 23 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 21 def port @port end |
#ssl ⇒ Object
Returns the value of attribute ssl
21 22 23 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 21 def ssl @ssl end |
#timeout_seconds ⇒ Object
Returns the value of attribute timeout_seconds
21 22 23 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 21 def timeout_seconds @timeout_seconds end |
#uds_path ⇒ Object
Returns the value of attribute uds_path
21 22 23 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 21 def uds_path @uds_path end |
Instance Method Details
#merge(**member_values) ⇒ Object
Returns a frozen copy of this struct with the provided +member_values+ modified.
57 58 59 60 61 62 63 64 65 |
# File 'lib/ddtrace/configuration/agent_settings_resolver.rb', line 57 def merge(**member_values) new_struct = dup member_values.each do |member, value| new_struct[member] = value end new_struct.freeze end |