Class: Promenade::Configuration

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

Constant Summary collapse

DEFAULT_RACK_LATENCY_BUCKETS =
[0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10].freeze
DEFAULT_QUEUE_TIME_BUCKETS =
[0.01, 0.5, 1.0, 10.0, 30.0].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
# File 'lib/promenade/configuration.rb', line 9

def initialize
  @rack_latency_buckets = DEFAULT_RACK_LATENCY_BUCKETS
  @queue_time_buckets = DEFAULT_QUEUE_TIME_BUCKETS
end

Instance Attribute Details

#queue_time_bucketsObject

Returns the value of attribute queue_time_buckets.



3
4
5
# File 'lib/promenade/configuration.rb', line 3

def queue_time_buckets
  @queue_time_buckets
end

#rack_latency_bucketsObject

Returns the value of attribute rack_latency_buckets.



3
4
5
# File 'lib/promenade/configuration.rb', line 3

def rack_latency_buckets
  @rack_latency_buckets
end