Module: DatadogExporter
- Defined in:
- lib/datadog_exporter.rb,
lib/datadog_exporter/client.rb,
lib/datadog_exporter/version.rb,
lib/datadog_exporter/monitors.rb,
lib/datadog_exporter/client/config.rb,
lib/datadog_exporter/configuration.rb,
lib/datadog_exporter/monitors/export.rb,
lib/datadog_exporter/monitors/import.rb,
lib/datadog_exporter/datadog_api_requests.rb,
lib/datadog_exporter/datadog_api_requests/monitors.rb,
lib/datadog_exporter/monitors/utilities/name_transformer.rb,
lib/datadog_exporter/monitors/utilities/template_manager.rb
Overview
The DatadogExporter tool
Defined Under Namespace
Modules: DatadogApiRequests, Monitors Classes: Client, Configuration
Constant Summary collapse
- VERSION =
"0.2.4".freeze
Class Method Summary collapse
-
.configuration ⇒ Object
Returns the global ‘DatadogExporter::Configuration` object.
-
.configure {|Configuration| ... } ⇒ Object
Yields the global configuration to a block.
Class Method Details
.configuration ⇒ Object
Returns the global ‘DatadogExporter::Configuration` object. While you can use this method to access the configuration, the more common convention is to use `DatadogExporter.configure“
17 18 19 |
# File 'lib/datadog_exporter.rb', line 17 def self.configuration @configuration ||= DatadogExporter::Configuration.new end |
.configure {|Configuration| ... } ⇒ Object
Yields the global configuration to a block.
29 30 31 32 33 |
# File 'lib/datadog_exporter.rb', line 29 def self.configure raise ArgumentError, "Please provide a block to configure" unless block_given? yield configuration end |