Class: Terraformer::Resource::DatadogMonitor
- Inherits:
-
Object
- Object
- Terraformer::Resource::DatadogMonitor
- Includes:
- Templating
- Defined in:
- lib/terraformer/resource/datadog_monitor.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options, client) ⇒ DatadogMonitor
constructor
A new instance of DatadogMonitor.
Methods included from Templating
#apply_template, #template_path
Constructor Details
#initialize(options, client) ⇒ DatadogMonitor
Returns a new instance of DatadogMonitor.
10 11 12 13 |
# File 'lib/terraformer/resource/datadog_monitor.rb', line 10 def initialize(, client) @credentials = Terraformer::Credentials::Datadog.() @client = client.new(@credentials[:api_key], @credentials[:app_key]) end |
Class Method Details
.execute(options, client: Dogapi::Client) ⇒ Object
6 7 8 |
# File 'lib/terraformer/resource/datadog_monitor.rb', line 6 def self.execute(, client: Dogapi::Client) self.new(, client).execute end |
Instance Method Details
#execute ⇒ Object
15 16 17 |
# File 'lib/terraformer/resource/datadog_monitor.rb', line 15 def execute { tf: tf, tfstate: tfstate } end |