Class: WavefrontHclOutput::Notificant
- Defined in:
- lib/wavefront-cli/output/hcl/notificant.rb
Overview
Munge notificant output into something compatible with the Wavefront Terraform provider
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #hcl_fields ⇒ Object
-
#khandle_customHttpHeaders ⇒ Object
rubocop:disable Naming/MethodName.
- #khandle_title ⇒ Object
- #resource_name ⇒ Object
- #vhandle_template(val) ⇒ Object
Methods inherited from Base
#close_output, #handler, #initialize, #open_output, #quote_value, #required_fields, #run, #vhandle_tags
Constructor Details
This class inherits a constructor from WavefrontHclOutput::Base
Instance Method Details
#hcl_fields ⇒ Object
11 12 13 14 |
# File 'lib/wavefront-cli/output/hcl/notificant.rb', line 11 def hcl_fields %w[title description triggers template method recipient emailSubject contentType customHttpHeaders] end |
#khandle_customHttpHeaders ⇒ Object
rubocop:disable Naming/MethodName
29 30 31 |
# File 'lib/wavefront-cli/output/hcl/notificant.rb', line 29 def khandle_customHttpHeaders 'custom_headers' end |
#khandle_title ⇒ Object
24 25 26 |
# File 'lib/wavefront-cli/output/hcl/notificant.rb', line 24 def khandle_title 'name' end |
#resource_name ⇒ Object
20 21 22 |
# File 'lib/wavefront-cli/output/hcl/notificant.rb', line 20 def resource_name 'alert_target' end |
#vhandle_template(val) ⇒ Object
16 17 18 |
# File 'lib/wavefront-cli/output/hcl/notificant.rb', line 16 def vhandle_template(val) val.gsub(/\s*\n/, '') end |