Class: Caliper::Stats::Statistics

Inherits:
StatisticsMap show all
Defined in:
lib/caliper/stats/statistics.rb

Constant Summary collapse

MEASURE_KEY =
"Measure"
DESCRIBE_KEY =
"Describe"
SUCCESSFUL_KEY =
"Successful"
FAILED_KEY =
"Failed"

Instance Method Summary collapse

Methods inherited from StatisticsMap

#ensure, #to_s, #update

Instance Method Details

#get_describesObject

Returns the statistic representing how many describe calls happened



30
31
32
# File 'lib/caliper/stats/statistics.rb', line 30

def get_describes
	return ensure(DESCRIBE_KEY)
end

#get_failedObject



54
55
56
# File 'lib/caliper/stats/statistics.rb', line 54

def get_failed
	return ensure(FAILED_KEY)
end

#get_measuresObject



38
39
40
# File 'lib/caliper/stats/statistics.rb', line 38

def get_measures
	return ensure(MEASURE_KEY)
end

#get_successfulObject



46
47
48
# File 'lib/caliper/stats/statistics.rb', line 46

def get_successful
	return ensure(SUCCESSFUL_KEY)
end

#update_describes(val) ⇒ Object



34
35
36
# File 'lib/caliper/stats/statistics.rb', line 34

def update_describes(val)
	update(DESCRIBE_KEY, val)
end

#update_failedObject



58
59
60
# File 'lib/caliper/stats/statistics.rb', line 58

def update_failed
	update(FAILED_KEY, val)
end

#update_measures(val) ⇒ Object



42
43
44
# File 'lib/caliper/stats/statistics.rb', line 42

def update_measures(val)
	update(MEASURE_KEY, val)
end

#update_successfulObject



50
51
52
# File 'lib/caliper/stats/statistics.rb', line 50

def update_successful
	update(SUCCESSFUL_KEY, val)
end