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



119
120
121
# File 'lib/statsd/instrument/matchers.rb', line 119

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