Reputation: 2119
(tcp-server {:host "127.0.0.1" :port 5555})
(let [userindex1 (default :ttl 300 (update-index (index)))])
(let [email (mailer {....email configuration})]
(streams
(where (service "log")
(smap
(fn [events]
(let [count-of-transaction (count (filter #(= "error" (:type %)) events))]
(event
{
:status "Failure"
:metric count-of-failures
:total-fail (< count-of-failures 2)})))
(where (and (= (:status event) "Failure")
(:total-fail event))
(email "[email protected]")
)prn))))
When I use >
symbol :total-fail (> count-of-failures 2)
but when I use less than symbol <
I am getting unrecognized symbol <
error. How to use less than symbol.
Thanks in advance
Upvotes: 0
Views: 50