Liking cljdoc? Tell your friends :D

taoensso.telemere.slack

Telemere -> Slack handler using `clj-slack`,
Ref. <https://github.com/julienXX/clj-slack>

default-dispatch-optsclj

source

handler:slackclj

(handler:slack {:keys [conn-opts post-opts output-fn]
                :or {conn-opts {:api-url "https://slack.com/api" :token nil}
                     post-opts {:channel-id nil :username nil}
                     output-fn (utils/format-signal-fn)}})
Alpha, subject to change.

Needs `clj-slack`, Ref. <https://github.com/julienXX/clj-slack>.

Returns a signal handler that:
  - Takes a Telemere signal (map).
  - Writes the signal as a string to specified Slack channel.

Can output signals as human or machine-readable (edn, JSON) strings.

Default handler dispatch options (override when calling `add-handler!`):
  `:min-level` - `:info`
  `:limit` - `#{"5/1m" "10/15m" "15/1h" "30/6h"}`

Options:
   `:output-fn` - (fn [signal]) => string, see `format-signal-fn` or `pr-signal-fn`
   `:conn-opts` - Map of connection opts given to `clj-slack.chat/post-message`
     Examples:
       {:token "MY-TOKEN"}
       {:token "MY-TOKEN", :api-url "https://slack.com/api"}

   `:post-opts` - Map of post opts given to `clj-slack.chat/post-message`
     Examples:
       {:channel-id "C12345678", :username "MY_BOT"}

Tips:
  - See `clj-slack` docs for more info on its options.
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close