Class: BoringMetrics::Configuration
- Inherits:
-
Object
- Object
- BoringMetrics::Configuration
- Defined in:
- lib/boringmetrics/configuration.rb
Instance Attribute Summary collapse
-
#apiUrl ⇒ Object
Returns the value of attribute apiUrl.
-
#livesDebounceTime ⇒ Object
Returns the value of attribute livesDebounceTime.
-
#livesMaxBatchSize ⇒ Object
Returns the value of attribute livesMaxBatchSize.
-
#logsMaxBatchSize ⇒ Object
Returns the value of attribute logsMaxBatchSize.
-
#logsSendInterval ⇒ Object
Returns the value of attribute logsSendInterval.
-
#maxRetryAttempts ⇒ Object
Returns the value of attribute maxRetryAttempts.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 |
# File 'lib/boringmetrics/configuration.rb', line 7 def initialize @apiUrl = "https://api.getboringmetrics.com" @maxRetryAttempts = 5 @logsMaxBatchSize = 100 @logsSendInterval = 5 # seconds @livesMaxBatchSize = 20 @livesDebounceTime = 1 # seconds end |
Instance Attribute Details
#apiUrl ⇒ Object
Returns the value of attribute apiUrl.
5 6 7 |
# File 'lib/boringmetrics/configuration.rb', line 5 def apiUrl @apiUrl end |
#livesDebounceTime ⇒ Object
Returns the value of attribute livesDebounceTime.
5 6 7 |
# File 'lib/boringmetrics/configuration.rb', line 5 def livesDebounceTime @livesDebounceTime end |
#livesMaxBatchSize ⇒ Object
Returns the value of attribute livesMaxBatchSize.
5 6 7 |
# File 'lib/boringmetrics/configuration.rb', line 5 def livesMaxBatchSize @livesMaxBatchSize end |
#logsMaxBatchSize ⇒ Object
Returns the value of attribute logsMaxBatchSize.
5 6 7 |
# File 'lib/boringmetrics/configuration.rb', line 5 def logsMaxBatchSize @logsMaxBatchSize end |
#logsSendInterval ⇒ Object
Returns the value of attribute logsSendInterval.
5 6 7 |
# File 'lib/boringmetrics/configuration.rb', line 5 def logsSendInterval @logsSendInterval end |
#maxRetryAttempts ⇒ Object
Returns the value of attribute maxRetryAttempts.
5 6 7 |
# File 'lib/boringmetrics/configuration.rb', line 5 def maxRetryAttempts @maxRetryAttempts end |