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

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, options = {})
  Distribution.new(:d, metric_name, options)
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, options = {})
  Gauge.new(:g, metric_name, options)
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, options = {})
  Histogram.new(:h, metric_name, options)
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, options = {})
  Increment.new(:c, metric_name, options)
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, options = {})
  Measure.new(:ms, metric_name, options)
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, options = {})
  Set.new(:s, metric_name, options)
end