Class: DatadogExporter::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_exporter/client.rb,
lib/datadog_exporter/client/config.rb

Overview

The client that makes the actual requests to the DatadogAPIClient. ‘config` is an instance of `DatadogApi::Client::Config::Base`

Defined Under Namespace

Classes: Config

Instance Method Summary collapse

Constructor Details

#initialize(config: DatadogExporter::Client::Config.new) ⇒ Client

Returns a new instance of Client.



8
9
10
# File 'lib/datadog_exporter/client.rb', line 8

def initialize(config: DatadogExporter::Client::Config.new)
  @datadog_config = config.datadog_api_configuration
end

Instance Method Details

#datadog_clientDatadogAPIClient::APIClient



17
18
19
# File 'lib/datadog_exporter/client.rb', line 17

def datadog_client
  @datadog_client ||= DatadogAPIClient::APIClient.new(@datadog_config)
end