Class: CloudwatchMetrics::Configuration
- Inherits:
-
Object
- Object
- CloudwatchMetrics::Configuration
- Defined in:
- lib/cloudwatch_metrics/configuration.rb
Instance Attribute Summary collapse
-
#default_dimensions ⇒ Object
Returns the value of attribute default_dimensions.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#error_handler ⇒ Object
Returns the value of attribute error_handler.
- #logger ⇒ Object
-
#namespace ⇒ Object
Returns the value of attribute namespace.
- #no_cw_alias ⇒ Object
- #non_production_prefix ⇒ Object
- #publish_environments ⇒ Object
-
#region ⇒ Object
Returns the value of attribute region.
Instance Attribute Details
#default_dimensions ⇒ Object
Returns the value of attribute default_dimensions.
5 6 7 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 5 def default_dimensions @default_dimensions end |
#environment ⇒ Object
Returns the value of attribute environment.
5 6 7 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 5 def environment @environment end |
#error_handler ⇒ Object
Returns the value of attribute error_handler.
5 6 7 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 5 def error_handler @error_handler end |
#logger ⇒ Object
16 17 18 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 16 def logger @logger ||= Logger.new($stdout) end |
#namespace ⇒ Object
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 5 def namespace @namespace end |
#no_cw_alias ⇒ Object
8 9 10 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 8 def no_cw_alias @no_cw_alias ||= false end |
#non_production_prefix ⇒ Object
20 21 22 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 20 def non_production_prefix @non_production_prefix ||= 'test/' end |
#publish_environments ⇒ Object
12 13 14 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 12 def publish_environments @publish_environments ||= %w[production] end |
#region ⇒ Object
Returns the value of attribute region.
5 6 7 |
# File 'lib/cloudwatch_metrics/configuration.rb', line 5 def region @region end |