Project

oops_genie

0.0
Low commit activity in last 3 years
No release in over a year
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
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.3.0
~> 6.1.4
 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.