Class: Datadog::Core::Configuration::AgentSettingsResolver::AgentSettings

Inherits:
Struct
  • Object
show all
Defined in:
lib/datadog/core/configuration/agent_settings_resolver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(adapter:, ssl:, hostname:, port:, uds_path:, timeout_seconds:, deprecated_for_removal_transport_configuration_proc:) ⇒ AgentSettings

Returns a new instance of AgentSettings.



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/datadog/core/configuration/agent_settings_resolver.rb', line 31

def initialize(
  adapter:,
  ssl:,
  hostname:,
  port:,
  uds_path:,
  timeout_seconds:,
  deprecated_for_removal_transport_configuration_proc:
)
  super(
    adapter,
    ssl,
    hostname,
    port,
    uds_path,
    timeout_seconds,
    deprecated_for_removal_transport_configuration_proc
  )
  freeze
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter

Returns:

  • (Object)

    the current value of adapter



21
22
23
# File 'lib/datadog/core/configuration/agent_settings_resolver.rb', line 21

def adapter
  @adapter
end

#deprecated_for_removal_transport_configuration_procObject

Returns the value of attribute deprecated_for_removal_transport_configuration_proc

Returns:

  • (Object)

    the current value of deprecated_for_removal_transport_configuration_proc



21
22
23
# File 'lib/datadog/core/configuration/agent_settings_resolver.rb', line 21

def deprecated_for_removal_transport_configuration_proc
  @deprecated_for_removal_transport_configuration_proc
end

#hostnameObject

Returns the value of attribute hostname

Returns:

  • (Object)

    the current value of hostname



21
22
23
# File 'lib/datadog/core/configuration/agent_settings_resolver.rb', line 21

def hostname
  @hostname
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



21
22
23
# File 'lib/datadog/core/configuration/agent_settings_resolver.rb', line 21

def port
  @port
end

#sslObject

Returns the value of attribute ssl

Returns:

  • (Object)

    the current value of ssl



21
22
23
# File 'lib/datadog/core/configuration/agent_settings_resolver.rb', line 21

def ssl
  @ssl
end

#timeout_secondsObject

Returns the value of attribute timeout_seconds

Returns:

  • (Object)

    the current value of timeout_seconds



21
22
23
# File 'lib/datadog/core/configuration/agent_settings_resolver.rb', line 21

def timeout_seconds
  @timeout_seconds
end

#uds_pathObject

Returns the value of attribute uds_path

Returns:

  • (Object)

    the current value of uds_path



21
22
23
# File 'lib/datadog/core/configuration/agent_settings_resolver.rb', line 21

def uds_path
  @uds_path
end