Low commit activity in last 3 years
No release in over a year
Allows to interact with OpsGenie api. Alerts and Heartbeat operations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 3.0
~> 13.0

Runtime

 Project Readme

Buyerquest Opsgenie Ruby gem

This gem provides opsgenie related functionality

Installation

Add this line to your application's Gemfile:

gem 'buyerquest-opsgenie'

And then execute:

$ bundle install

Or install it directly:

$ gem install buyerquest-opsgenie

Usage

Alert creation

Example:

require 'buyerquest/opsgenie'

# Initialise client singleton
Buyerquest::Opsgenie::Client.init 'your-api-key-here'
# alternatively export OPSG_API_KEY to the runtime environment and then call without any arguments:
# Buyerquest::Opsgenie::Client.init

# Prepare alert object instance
test_alert = Buyerquest::Opsgenie::Alert.new(message: "I'm an alert from the buyerquest-opsgenie gem",
                                             alias: 'no-duplication',
                                             description: 'buyerquest-opsgenie gem alert')

# Fire alert
test_alert.create

Heartbeat usage

require 'buyerquest/opsgenie'

# Initialise client singleton
Buyerquest::Opsgenie::Client.init 'your-api-key-here'
# alternatively export OPSG_API_KEY to the runtime environment and then call without any arguments:
# Buyerquest::Opsgenie::Client.init

# Prepare alert object instance
test_heartbeat = Buyerquest::Opsgenie::Heartbeat.new(name: 'Test heartbeat')

# Start heartbeat
test_heartbeat.start

Testing

Run rake spec to start the test suite.