Project

bigpanda

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A Ruby client (and additional integrations) for BigPanda's API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0
 Project Readme

BigPanda

A Ruby client (and additional integrations) for BigPanda's API

Installation

Add this line to your application's Gemfile:

gem 'bigpanda'

And then execute:

$ bundle

Or install it yourself:

$ gem install bigpanda

Example

require 'bigpanda'

panda = BigPanda::Client.new(access_token: 'YOUR_TOKEN')
 # => #<BigPanda::Client:0x007fb7721641b8 @config={:access_token=>"YOUR_TOKEN", :target_url=>"https://api.bigpanda.io", :deployment_start_path=>"/data/events/deployments/start", :deployment_end_path=>"/data/events/deployments/end"}, @ssl={}>

panda.deployment_start({ hosts: ['prod-1', 'prod-2'], component: 'billing', version: '123' })
 # => {"status"=>"created"}

panda.deployment_end({ hosts: ['prod-1', 'prod-2'], component: 'billing', version: '123' })
 # => {"status"=>"created"}

SSL Options

You can pass ssl options to BigPanda::Client.new

BigPanda::Client.new(access_token: 'YOUR_TOKEN', ssl: {ca_file: '/my/cert.pem'})

Avalible SSL options:

:client_cert
:client_key
:ca_file
:ca_path
:verify_depth
:version

API Documentation

Additional documentation can be found at http://dev.bigpanda.io/docs/api