Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.
/ clj-bigpanda Public archive

A clojure library for BigPanda Alerts and Deployments

Notifications You must be signed in to change notification settings

nubank/clj-bigpanda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-bigpanda

A Clojure library for interacting with BigPanda.

Feel free to contribute!

Usage

Alerts

(require '[clj-bigpanda.events :as events])
; set token and appkey
(def bigpanda-auth {:token "123123-my-token" :appkey "312312-my-appkey"})
; pass it your auth and an alert
(events/create-alert bigpanda-auth {:status "critical" :host "my-db-1" :check "CPU"})

Deployments

(require '[clj-bigpanda.events :as events])
; set token and appkey
(def bigpanda-auth {:token "123123-my-token" :appkey "312312-my-appkey"})
; pass it your auth and a deployment start
(events/start-deployment bigpanda-auth {:hosts ["prod-api-1", "prod-api-2"] :version "0.8.2" :component "billing"})
; pass it your auth and a deployment end
(events/end-deployment bigpanda-auth {:hosts ["prod-api-1", "prod-api-2"] :version "0.8.2" :component "billing" :status "success"})

Tests

Run tests with lein test

License

Copyright (C) 2016 Nubank tech@nubank.com.br

Distributed under the Eclipse Public License, the same as Clojure.

Based on clj-librato project: https://github.com/aphyr/clj-librato

About

A clojure library for BigPanda Alerts and Deployments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published