Created
June 24, 2016 06:37
-
-
Save pradeepchhetri/469ad9b96479d95a765cb95d0b46530e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; -*- 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