Source

metrics-clojure / src / metrics / utils.clj

Full commit
1
2
3
4
5
6
7
8
(ns metrics.utils
  (import (com.yammer.metrics.core MetricName)))


(defn metric-name [title]
  (if (string? title)
    (new MetricName "default" "default" title)
    (new MetricName (first title) (second title) (last title))))