Skip to content

Instantly share code, notes, and snippets.

@pradeepchhetri
Created June 24, 2016 06:37
Show Gist options
  • Save pradeepchhetri/469ad9b96479d95a765cb95d0b46530e to your computer and use it in GitHub Desktop.
Save pradeepchhetri/469ad9b96479d95a765cb95d0b46530e to your computer and use it in GitHub Desktop.
; -*- mode: clojure; -*-
; vim: filetype=clojure
(logging/init {:file "riemann.log" :console true})
(tcp-server {:tls? false
:key "test/data/tls/server.pkcs8"
:cert "test/data/tls/server.crt"
:ca-cert "test/data/tls/demoCA/cacert.pem"})
(instrumentation {:interval 1})
(let [host "0.0.0.0"]
(tcp-server {:host host})
(udp-server {:host host})
(ws-server {:host host}))
(periodically-expire 1)
; replace id, key and phone number
(def text (twilio { :account "id"
:service-key "key"
:from "+15005550006" }))
(streams
(where (state "critical")
text))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment