Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lita-ping-me

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lita-ping-me

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 29 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc