定制 tombonez/wp-uptime-monitor-rest-api-endpoint 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tombonez/wp-uptime-monitor-rest-api-endpoint

最新稳定版本:1.2.0

Composer 安装命令:

composer require tombonez/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.

README 文档

README

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.

统计信息

  • 总下载量: 8.49k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-02