dieterholvoet/oc-uptimerobot-plugin

Provides dashboard widgets with Uptime Robot statistics

1.0.2 2020-05-03 17:18 UTC

This package is auto-updated.

Last update: 2024-04-29 04:57:48 UTC


README

Latest Stable Version Total Downloads License

Provides dashboard widgets with Uptime Robot statistics

Screenshot

Installation

This OctoberCMS plugin requires PHP 7.0.8 or higher. It can be installed using Composer:

 composer require dieterholvoet/oc-uptimerobot-plugin

How does it work?

This plugin provides two dashboard widgets showing statistics collected through the free Uptime Robot service:

  • Overall uptime: Shows a percentage indicating the overall uptime of your website.
  • Response time: Shows a line graph with response times, collected every 30 minutes

To prevent reaching API rate limits, the displayed data is refreshed every 5 minutes.

Configuration

To configure the plugin, go to the settings page in the backend. This plugin's settings can be found under the System section.

Configuration can also be provided through code by creating a configuration file config/dieterholvoet/uptimerobot/config.php, or config/dieterholvoet/uptimerobot/dev/config.php for environment-specific configuration. Inside the overridden configuration file you can return only values you want to override.

<?php

return [
    'api_key' => 'xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx',
    'monitor_id' => 000000000,
];

Security

If you discover any security-related issues, please email dieter.holvoet@gmail.com instead of using the issue tracker.

License

Distributed under the MIT License. See the LICENSE file for more information.