WP Manifestindependent plugin directory
manifest / developer / wp-uptime-monitor-rest-api-endpoint

WP Uptime Monitor REST API Endpoint

A WordPress plugin for adding a non-cacheable REST API endpoint to your website that can be used to monitor its uptime.

★ 3stars
1.2.0latest · 3 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/tombonez/wp-uptime-monitor-rest-api-endpoint/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin for adding a non-cacheable REST API endpoint to your website that can be used to monitor its uptime.

Installation

  1. Download and unzip the plugin files.
  2. Upload the wp-uptime-monitor-rest-api-endpoint directory to your /wp-content/mu-plugins/ directory.
  3. The endpoint will now be live at https://example.com/wp-json/uptime-monitor/v1/check.

Usage

Send a GET request to https://example.com/wp-json/uptime-monitor/v1/check to monitor the uptime of your website.

Response

On successful communication with your website and the underlying database, the REST API will respond with "status" set to "online" and the current datetime "timestamp". The datetime format will be reflective of your SQL server's NOW() function output format.

If the website's server is not reachable or the database is inaccessible, you will receive an error message with HTTP status 503.

License

The code is available under the MIT License.

Releases

4 releases.

Tag
Published
1.2.0 latest
Sep 13, 2023 3 years ago
Aug 7, 2023 3 years ago
Aug 2, 2023 3 years ago
Aug 2, 2023 3 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.