Module: StatsD::Instrument::Matchers
- Defined in:
- lib/statsd/instrument/matchers.rb
Defined Under Namespace
Classes: Matcher
Constant Summary collapse
- Increment =
Class.new(Matcher)
- Measure =
Class.new(Matcher)
- Gauge =
Class.new(Matcher)
- Set =
Class.new(Matcher)
- Histogram =
Class.new(Matcher)
- Distribution =
Class.new(Matcher)
Instance Method Summary collapse
- #trigger_statsd_distribution(metric_name, options = {}) ⇒ Object
- #trigger_statsd_gauge(metric_name, options = {}) ⇒ Object
- #trigger_statsd_histogram(metric_name, options = {}) ⇒ Object
- #trigger_statsd_increment(metric_name, options = {}) ⇒ Object
- #trigger_statsd_measure(metric_name, options = {}) ⇒ Object
- #trigger_statsd_set(metric_name, options = {}) ⇒ Object
Instance Method Details
#trigger_statsd_distribution(metric_name, options = {}) ⇒ Object
110 111 112 |
# File 'lib/statsd/instrument/matchers.rb', line 110 def trigger_statsd_distribution(metric_name, = {}) Distribution.new(:d, metric_name, ) end |
#trigger_statsd_gauge(metric_name, options = {}) ⇒ Object
98 99 100 |
# File 'lib/statsd/instrument/matchers.rb', line 98 def trigger_statsd_gauge(metric_name, = {}) Gauge.new(:g, metric_name, ) end |
#trigger_statsd_histogram(metric_name, options = {}) ⇒ Object
106 107 108 |
# File 'lib/statsd/instrument/matchers.rb', line 106 def trigger_statsd_histogram(metric_name, = {}) Histogram.new(:h, metric_name, ) end |
#trigger_statsd_increment(metric_name, options = {}) ⇒ Object
90 91 92 |
# File 'lib/statsd/instrument/matchers.rb', line 90 def trigger_statsd_increment(metric_name, = {}) Increment.new(:c, metric_name, ) end |
#trigger_statsd_measure(metric_name, options = {}) ⇒ Object
94 95 96 |
# File 'lib/statsd/instrument/matchers.rb', line 94 def trigger_statsd_measure(metric_name, = {}) Measure.new(:ms, metric_name, ) end |
#trigger_statsd_set(metric_name, options = {}) ⇒ Object
102 103 104 |
# File 'lib/statsd/instrument/matchers.rb', line 102 def trigger_statsd_set(metric_name, = {}) Set.new(:s, metric_name, ) end |