Class: BoringMetrics::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/boringmetrics/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#apiUrlObject

Returns the value of attribute apiUrl.



5
6
7
# File 'lib/boringmetrics/configuration.rb', line 5

def apiUrl
  @apiUrl
end

#livesDebounceTimeObject

Returns the value of attribute livesDebounceTime.



5
6
7
# File 'lib/boringmetrics/configuration.rb', line 5

def livesDebounceTime
  @livesDebounceTime
end

#livesMaxBatchSizeObject

Returns the value of attribute livesMaxBatchSize.



5
6
7
# File 'lib/boringmetrics/configuration.rb', line 5

def livesMaxBatchSize
  @livesMaxBatchSize
end

#logsMaxBatchSizeObject

Returns the value of attribute logsMaxBatchSize.



5
6
7
# File 'lib/boringmetrics/configuration.rb', line 5

def logsMaxBatchSize
  @logsMaxBatchSize
end

#logsSendIntervalObject

Returns the value of attribute logsSendInterval.



5
6
7
# File 'lib/boringmetrics/configuration.rb', line 5

def logsSendInterval
  @logsSendInterval
end

#maxRetryAttemptsObject

Returns the value of attribute maxRetryAttempts.



5
6
7
# File 'lib/boringmetrics/configuration.rb', line 5

def maxRetryAttempts
  @maxRetryAttempts
end