Project

oops_genie

0.0
The project is in a healthy, maintained state
This is a minimal gem that integrates to the OpsGenie API specification. Right now only OpsGenie Alerts are implemented. More functionality will follow later.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies

Development

Runtime

~> 2.3.0
~> 5.2
 Project Readme

OopsGenie

This is a minimal gem that integrates to the OpsGenie API specification. Right now only OpsGenie Alerts are implemented. More functionality will follow later.

Usage

Create an OopsGenieAlert Object minimally providing your OpsGenie api key and a message.

alert = OopsGenie::OopsGenieAlert.new('your api key here', 'Testing Alerts')
alert.send_alert

Additionally you can set other configuration parameters to the alert object before sending. eg.

alert = OopsGenie::OopsGenieAlert.new('your api key here', 'Testing Alerts')
alert.tags = ['Critical', 'Another tag']
alert.priority = 'P1'
alert.send_alert

Attributes that can be set on the alert oject are:

  • api_key
  • message
  • alias
  • actions
  • tags
  • details
  • entity
  • priority
  • responders

See the OpsGenie API for more information on these.

Installation

Add this line to your application's Gemfile:

gem 'oops_genie'

And then execute:

$ bundle

Or install it yourself as:

$ gem install oops_genie

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.