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
119 120 121 |
# File 'lib/statsd/instrument/matchers.rb', line 119 def trigger_statsd_distribution(metric_name, = {}) Distribution.new(:d, metric_name, ) end |
#trigger_statsd_gauge(metric_name, options = {}) ⇒ Object
107 108 109 |
# File 'lib/statsd/instrument/matchers.rb', line 107 def trigger_statsd_gauge(metric_name, = {}) Gauge.new(:g, metric_name, ) end |
#trigger_statsd_histogram(metric_name, options = {}) ⇒ Object
115 116 117 |
# File 'lib/statsd/instrument/matchers.rb', line 115 def trigger_statsd_histogram(metric_name, = {}) Histogram.new(:h, metric_name, ) end |
#trigger_statsd_increment(metric_name, options = {}) ⇒ Object
99 100 101 |
# File 'lib/statsd/instrument/matchers.rb', line 99 def trigger_statsd_increment(metric_name, = {}) Increment.new(:c, metric_name, ) end |
#trigger_statsd_measure(metric_name, options = {}) ⇒ Object
103 104 105 |
# File 'lib/statsd/instrument/matchers.rb', line 103 def trigger_statsd_measure(metric_name, = {}) Measure.new(:ms, metric_name, ) end |
#trigger_statsd_set(metric_name, options = {}) ⇒ Object
111 112 113 |
# File 'lib/statsd/instrument/matchers.rb', line 111 def trigger_statsd_set(metric_name, = {}) Set.new(:s, metric_name, ) end |