Skip to main content

Send notification when your website is down.

Project description

Down notifier

Usage

python -m down-notifier <config.json>

Example json config in "examples" folder.

from down_notifier import Checker, Site
from down_notifier.channel import TelegramChannel

channel = TelegramChannel(
  name="channel_name",
  message="{} - {}",
  token="token",
  chats=["chat_id_1", "chat_id_2"],
)
site = Site(
  name="site_name",
  url="http://example.com",
  status_code=200,
  timeout=60,
  channels=[channel],
)
checker = Checker([site])

checker.start_loop()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

down-notifier-0.1.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

down_notifier-0.1.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page