Class: Caliper::Stats::Statistics
- Inherits:
-
StatisticsMap
- Object
- Hash
- StatisticsMap
- Caliper::Stats::Statistics
- 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
-
#get_describes ⇒ Object
Returns the statistic representing how many describe calls happened.
- #get_failed ⇒ Object
- #get_measures ⇒ Object
- #get_successful ⇒ Object
- #update_describes(val) ⇒ Object
- #update_failed ⇒ Object
- #update_measures(val) ⇒ Object
- #update_successful ⇒ Object
Methods inherited from StatisticsMap
Instance Method Details
#get_describes ⇒ Object
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_failed ⇒ Object
54 55 56 |
# File 'lib/caliper/stats/statistics.rb', line 54 def get_failed return ensure(FAILED_KEY) end |
#get_measures ⇒ Object
38 39 40 |
# File 'lib/caliper/stats/statistics.rb', line 38 def get_measures return ensure(MEASURE_KEY) end |
#get_successful ⇒ Object
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_failed ⇒ Object
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_successful ⇒ Object
50 51 52 |
# File 'lib/caliper/stats/statistics.rb', line 50 def update_successful update(SUCCESSFUL_KEY, val) end |