0.0
No commit activity in last 3 years
No release in over 3 years
Interacts with Librato's Alerts API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

LibratoAlerts

A small library that allows retrieving, enabling and disabling librato alerts.

Usage

require "librato-alerts"

LibratoAlerts.configure do |config|
  config.user = "librato email"
  config.token = "librato token" # https://metrics.librato.com/tokens
end

LibratoAlerts.all
# => [{ :id => 1, :name => "alert.name", :description => nil, :conditions => [], :services => [], :attributes => {}, :active => true,
#  :created_at => 646099200, :updated_at => 646099200, :version => 2, :rearm_seconds => 600, :rearm_per_signal => false }, ...]

LibratoAlerts.disable(1) # => nil

LibratoAlerts.enable(1) # => nil

LibratoAlerts.delete(1) # => nil