0.0
No commit activity in last 3 years
No release in over 3 years
periodically checks status of website and alerts chat room if response error
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.6
~> 10.0
~> 3.3

Runtime

~> 4.0
~> 0.7
 Project Readme

lita-ping-me

lita-ping-me is a (slack) handler for Lita to ping a web service periodically and post to a channel if there is an error

Installation

Add lita-ping-me to your Lita instance's Gemfile:

gem "lita-ping-me"

Configuration

Required attributes

  • urls (Array) – An array of urls for lita-ping-me to periodically check
  • frequency (Integer) – How frequent to check for the service in minutes
  • channel (String) – Which (slack) channel id to post alerts to.

To get the channel ID:

 channel find channel-name

Example

Lita.configure do |config|
  config.handlers.ping_me.urls = ["http://google.com", "https://github.com"]
  config.handlers.ping_me.room = 'C03EV32P*'
  config.handlers.ping_me.frequency = 1
end

Usage

  • lita status http://google.com -> returns status of url
  • lita times http://google.com 200 -> returns last 10 times of url
  • lita any errors? -> checks currently set urls for any 500's
  • lita sleep -> stop checking for errors for 20 minutes
  • lita sleep 30 -> stop checking for errors for 30 minutes

License

MIT