 (defn heartbeat [e] (post-to-alerta
 	(:heartbeat alerta-endpoints)
 	{:origin (str "riemann/" hostname)
-	   :version version
+	   :tags [version]
 	   :type "Heartbeat"}))
 

; -*- mode: clojure; -*-
; vim: filetype=clojure

(def version "1.0.0")

(def alerta-endpoints
	{:alert "http://localhost:8080/api/alert"

   :group (get event :group "Performance")
   :value (:metric event)
   :severity (:state event)
   :environment (get event :environment "infrastructure")
   :service [(get event :grid "Platform")]
   :tags (:tags event)
   :text (:description event)
   :rawData event})

(defn alerta
