Class: Maestro::Mock
- Inherits:
-
Object
- Object
- Maestro::Mock
- Includes:
- Singleton
- Defined in:
- lib/maestro_metrics.rb
Instance Method Summary collapse
- #aggregate(collection, pipeline = nil) ⇒ Object
- #collection_names ⇒ Object
- #count(metric, value, sample_rate = 1) ⇒ Object
- #decrement(metric, sample_rate = 1) ⇒ Object
- #find(collection, selector = {}, opts = {}) ⇒ Object
- #increment(metric, sample_rate = 1) ⇒ Object
- #log(collection, metrics) ⇒ Object
- #time(metric, sample_rate = 1, &block) ⇒ Object
- #timing(metric, value, sample_rate = 1) ⇒ Object
Instance Method Details
#aggregate(collection, pipeline = nil) ⇒ Object
201 202 203 |
# File 'lib/maestro_metrics.rb', line 201 def aggregate(collection, pipeline=nil) Array.new end |
#collection_names ⇒ Object
209 210 211 |
# File 'lib/maestro_metrics.rb', line 209 def collection_names Array.new end |
#count(metric, value, sample_rate = 1) ⇒ Object
177 178 179 |
# File 'lib/maestro_metrics.rb', line 177 def count(metric, value, sample_rate=1) end |
#decrement(metric, sample_rate = 1) ⇒ Object
189 190 191 |
# File 'lib/maestro_metrics.rb', line 189 def decrement(metric, sample_rate=1) end |
#find(collection, selector = {}, opts = {}) ⇒ Object
205 206 207 |
# File 'lib/maestro_metrics.rb', line 205 def find(collection, selector={}, opts={}) Array.new end |
#increment(metric, sample_rate = 1) ⇒ Object
185 186 187 |
# File 'lib/maestro_metrics.rb', line 185 def increment(metric, sample_rate=1) end |
#log(collection, metrics) ⇒ Object
197 198 199 |
# File 'lib/maestro_metrics.rb', line 197 def log(collection, metrics) -1 end |
#time(metric, sample_rate = 1, &block) ⇒ Object
193 194 195 |
# File 'lib/maestro_metrics.rb', line 193 def time(metric, sample_rate=1, &block) end |
#timing(metric, value, sample_rate = 1) ⇒ Object
181 182 183 |
# File 'lib/maestro_metrics.rb', line 181 def timing(metric, value, sample_rate=1) end |