This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.txt
44 lines (27 loc) · 1.46 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
=== Anexia Monitoring ===
Contributors: anxhnezbeda
License: MIT
A WordPress plugin used to monitor updates for core, plugins and themes. It can be also used to check if the website
is alive and working correctly.
== Description ==
A WordPress plugin used to monitor updates for core, plugins and themes. 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. Make sure that the
**ANX_MONITORING_ACCESS_TOKEN** is defined, since this is used for authorization. The endpoints will return a 401
HTTP_STATUS code if the token is not defined or invalid, and a 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
**Default**
/?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
**Default**
/?rest_route=/anxapi/v1/up/&access_token=custom_access_token
== Installation ==
In the projects wp-config.php add the access token configuration:
define(\'ANX_MONITORING_ACCESS_TOKEN\', \'custom_access_token\');