Class: Sapience::Metrics
- Inherits:
-
Object
- Object
- Sapience::Metrics
- Extended by:
- Descendants
- Defined in:
- lib/sapience/metrics.rb,
lib/sapience/metrics/datadog.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Datadog
Instance Method Summary collapse
- #batch(&_block) ⇒ Object
- #count(_metric, _amount, _options = {}) ⇒ Object
- #decrement(_metric, _options = {}) ⇒ Object
- #event(_title, _text, _options = {}) ⇒ Object
- #gauge(_metric, _amount, _options = {}) ⇒ Object
- #histogram(_metric, _amount, _options = {}) ⇒ Object
- #increment(_metric, _options = {}) ⇒ Object
- #time(_metric, _options = {}, &_block) ⇒ Object
- #timing(_metric, _duration = 0, _options = {}) ⇒ Object
Methods included from Descendants
Instance Method Details
#batch(&_block) ⇒ Object
34 35 36 |
# File 'lib/sapience/metrics.rb', line 34 def batch(&_block) fail NotImplementedError end |
#count(_metric, _amount, _options = {}) ⇒ Object
26 27 28 |
# File 'lib/sapience/metrics.rb', line 26 def count(_metric, _amount, = {}) fail NotImplementedError end |
#decrement(_metric, _options = {}) ⇒ Object
14 15 16 |
# File 'lib/sapience/metrics.rb', line 14 def decrement(_metric, = {}) fail NotImplementedError end |
#event(_title, _text, _options = {}) ⇒ Object
38 39 40 |
# File 'lib/sapience/metrics.rb', line 38 def event(_title, _text, = {}) fail NotImplementedError end |
#gauge(_metric, _amount, _options = {}) ⇒ Object
22 23 24 |
# File 'lib/sapience/metrics.rb', line 22 def gauge(_metric, _amount, = {}) fail NotImplementedError end |
#histogram(_metric, _amount, _options = {}) ⇒ Object
18 19 20 |
# File 'lib/sapience/metrics.rb', line 18 def histogram(_metric, _amount, = {}) fail NotImplementedError end |
#increment(_metric, _options = {}) ⇒ Object
10 11 12 |
# File 'lib/sapience/metrics.rb', line 10 def increment(_metric, = {}) fail NotImplementedError end |
#time(_metric, _options = {}, &_block) ⇒ Object
30 31 32 |
# File 'lib/sapience/metrics.rb', line 30 def time(_metric, = {}, &_block) fail NotImplementedError end |
#timing(_metric, _duration = 0, _options = {}) ⇒ Object
6 7 8 |
# File 'lib/sapience/metrics.rb', line 6 def timing(_metric, _duration = 0, = {}) fail NotImplementedError end |