https://github.com/level-level/heartbeat
Logging and reporting of periodic background processes
https://github.com/level-level/heartbeat
envoyer heartbeat logging monitoring wordpress
Last synced: 4 months ago
JSON representation
Logging and reporting of periodic background processes
- Host: GitHub
- URL: https://github.com/level-level/heartbeat
- Owner: level-level
- Created: 2017-06-09T07:28:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-09-07T14:01:42.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T18:51:44.587Z (6 months ago)
- Topics: envoyer, heartbeat, logging, monitoring, wordpress
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
A heartbeat can be used to monitor background processes that should regularly
trigger. The heartbeat can be linked to an external URL. This URL is pinged
when the heartbeat is triggered.In WordPress an overview of triggered heartbeats, timestamps and environment
are shown in the `Tools`/`Heartbeat status` menu.# Examples
## To trigger a heartbeat
```
use LL\Heartbeat\Heart;
Heart::beat('START_UPDATE_ALL', 'Updates all objects.');
```## To trigger a URL ping
Add a define to `wp-config.php` which links the heartbeat context to a URL. The
context is prefixed with `LL_HB_` by default.As an example:
In *envoyer.io* you can set a heartbeat under Project/Heartbeats/Add heartbeat.
Here you configure a name and the timing interval you expect the heartbeat to
trigger. The resulting URL is added to `wp-config.php`.```
define('LL_HB_START_UPDATE_ALL', 'http://beats.envoyer.io/heartbeat/#####');
```