class Adhearsion::Statistics::Dump

A point-time dump of process statistics

Attributes

call_counts[R]

@attribute @return [Hash] hash of call counts during the lifetime of the process.

calls_by_route[R]

@attribute @return [Hash] hash of call counts during the lifetime of the process, indexed by the route they matched.

timestamp[R]

@attribute @return [Time] the time at which this dump was generated

Public Class Methods

new(opts = {}) click to toggle source
# File lib/adhearsion/statistics.rb, line 117
def initialize(opts = {})
  @timestamp = opts[:timestamp]
  @call_counts = opts[:call_counts]
  @calls_by_route = opts[:calls_by_route]
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/adhearsion/statistics.rb, line 123
def <=>(other)
  timestamp <=> other.timestamp
end
inspect()
Alias for: to_s
to_s() click to toggle source
# File lib/adhearsion/statistics.rb, line 127
def to_s
  attrs = [:timestamp, :call_counts, :calls_by_route].map do |attr|
    "#{attr}=#{send(attr).inspect}"
  end
  "#<#{self.class} #{attrs.join ', '}>"
end
Also aliased as: inspect