Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.13 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.13 KB

sensu-client

A library to send alerts to sensu-client.

Installing

Clojars Project

Usage

For sensu-core

    '(require [sensu-client.core :as sensu])

    (sensu/send-alert :critical "host2 is down"
                      :host "sensu.company.com"
                      :port 3030
                      :name "host2-uptime-check"
                      :refresh 60
                      :occurrences 1
                      :proto :udp)

For sensu-go

    '(require [sensu-client.core :as sensu])

    (sensu/send-alert-sensu-go :critical "host2 is down"
                               :host "sensu.company.com"
                               :port 3031
                               :name "host2-uptime-check"
                               :labels {:contacts "team"})

Please refer this for more details.

License

Copyright © 2014 Helpshift Inc.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.