Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Latest commit

 

History

History
39 lines (25 loc) · 1.13 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.13 KB

lita-uptimerobot Gem Version

lita-uptimerobot is a handler for Lita that gives your bot commands for retrieving monitor statuses and uptime ratios from uptimerobot.com

Installation

Add lita-uptimerobot to your Lita instance's Gemfile:

gem "lita-uptimerobot"

Configuration

Required attributes

  • api_key (String) – Your master API key from your uptimerobot.com dashboard.

Example

Lita.configure do |config|
    config.handlers.uptimerobot.api_key= ENV["UPTIME_API_KEY"]
end

Usage

Commands are called in the with the uptime prefix what can be optionally with the upt abbreviation. There's no need to prefix the command with your bot name.

uptime mysite (displays uptime and status for a monitor that matches)
upt all (displays uptime and statuses for all configured monitors)
upt example.com 15d (displays status and uptime for example.com where uptime is averaged over 15 days)

License

MIT