Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule StatsYard.ExVmstats.Backends.Statix do
- def counter(value, metric) when metric >= 0 do
- StatsYard.StatShipper.increment(metric, value)
- end
- def counter(value, metric) when metric < 0 do
- StatsYard.StatShipper.decrement(metric, value)
- end
- def gauge(value, metric) do
- StatsYard.StatShipper.gauge(metric, value)
- end
- def histogram(value, metric) do
- StatsYard.StatShipper.histogram(metric, value)
- end
- def timing(value, metric) do
- StatsYard.StatShipper.timing(metric, value)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement