Class: Aws::Embedded::Metrics::Config::Configuration
- Inherits:
-
Object
- Object
- Aws::Embedded::Metrics::Config::Configuration
- Defined in:
- lib/aws-embedded-metrics-customink/config.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#log_group_name ⇒ Object
36 37 38 39 40 |
# File 'lib/aws-embedded-metrics-customink/config.rb', line 36 def log_group_name return @log_group_name if defined?(@log_group_name) ENV.fetch('AWS_EMF_LOG_GROUP_NAME', nil) end |
#log_stream_name ⇒ Object
42 43 44 45 46 |
# File 'lib/aws-embedded-metrics-customink/config.rb', line 42 def log_stream_name return @log_stream_name if defined?(@log_stream_name) ENV.fetch('AWS_EMF_LOG_STREAM_NAME', nil) end |
#namespace ⇒ Object
48 49 50 51 52 |
# File 'lib/aws-embedded-metrics-customink/config.rb', line 48 def namespace return @namespace if defined?(@namespace) ENV.fetch('AWS_EMF_NAMESPACE', 'aws-embedded-metrics') end |
#sink ⇒ Object
54 55 56 |
# File 'lib/aws-embedded-metrics-customink/config.rb', line 54 def sink @sink ||= DEFAULT_SINK.new end |
Instance Method Details
#reconfigure {|_self| ... } ⇒ Object
30 31 32 33 34 |
# File 'lib/aws-embedded-metrics-customink/config.rb', line 30 def reconfigure instance_variables.each { |var| instance_variable_set var, nil } yield(self) if block_given? self end |