[wordpress插件] Anexia Monitoring厌食症监测

wordpress 插件 文章 2020-02-18 11:10 0 64 全屏看文
评分
0
描述

A WordPress plugin used to monitor updates for core, plugins and themes.

一个WordPress插件,用于监视核心,插件和主题的更新。

It can be also used to check if the website

它也可以用来检查网站

is alive and working correctly.

还活着并且工作正常。

The plugin registers some custom REST endpoints which can be used for monitoring.

该插件注册了一些可用于监视的自定义REST端点。

Make sure that the

确保

ANX_MONITORING_ACCESS_TOKEN is defined, since this is used for authorization.

已定义 ANX_MONITORING_ACCESS_TOKEN ,因为它用于授权。

The endpoints will return a 401

端点将返回401

HTTP_STATUS code if the token is not defined or invalid, and a 200.

HTTP_STATUS代码(如果令牌未定义或无效)和200。

Version monitoring of core, plugins and themes

核心,插件和主题的版本监视

Returns all a list with platform and module information.

返回所有包含平台和模块信息的列表。

Active permalinks

有效的永久链接

/wp-json/anxapi/v1/modules/?access_token=custom_access_token

  / wp-json / anxapi / v1 / modules /?access_token = custom_access_token

Default

默认

/?rest_route=/anxapi/v1/modules/&access_token=custom_access_token

  /?rest_route = / anxapi / v1 / modules /&access_token = custom_access_token

Live monitoring

实时监控

This endpoint can be used to verify if the application is alive and working correctly.

此端点可用于验证应用程序是否仍在运行并且运行正常。

It checks if the database

它检查数据库是否

connection is working and makes a query for users.

连接正在工作,并向用户查询。

It allows to register custom check by using hooks.

它允许使用钩子注册自定义检查。

Active permalinks

有效的永久链接

/wp-json/anxapi/v1/up/?access_token=custom_access_token

  / wp-json / anxapi / v1 / up /?access_token = custom_access_token

Default

默认

/?rest_route=/anxapi/v1/up/&access_token=custom_access_token

  /?rest_route = / anxapi / v1 / up /&access_token = custom_access_token

安装步骤

In the projects wp-config.php add the access token configuration:

在项目wp-config.php中添加访问令牌配置:

define(\'ANX_MONITORING_ACCESS_TOKEN\', \'custom_access_token\');

  define(\'ANX_MONITORING_ACCESS_TOKEN \',\'custom_access_token \');

下载地址
https://downloads.wordpress.org/plugin/anexia-monitoring.zip
-EOF-