Let's go over configuration parameters for heartbeat monitors.
Name
Name is the displayed name/title of the monitor. It is used both on the application and the status page. When multiple monitors are listed, they are sorted alphabetically by the name.
Time settings
Interval
Interval is the frequency of the expected HTTP response. It should be 24 hours for a daily task, 7 days for a weekly one, etc.
Tolerance
Tolerance is a utility configuration parameter, useful especially for tasks with a varying process time. WebGazer waits as much as this tolerance, before marking the monitor as down when a request isn't delivered on time.
Rules
Rules are the success criteria for incoming requests. When a heartbeat monitor HTTP request hits WebGazer, it is evaluated according to the configured rules. Query part of the URL is parsed for the parameters.
A rule consists of four parts:
- Parameter name
- Parameter type (
bool
,int
orstr
) - Condition
- Expected value
bool
rules
Configuration examples:
success (bool) == true
fail (bool) != false
Example URL: https://heartbeat.webgazer.io/1-8d9883d14649?success=true
int
rules
Configuration examples:
seconds (int) <= 10
percentage (int) == 100
Example URL: https://heartbeat.webgazer.io/1-8d9883d14649?seconds=3
str
rules
Configuration examples:
name (str) == alice
server (str) != main
Example URL: https://heartbeat.webgazer.io/1-8d9883d14649?name=alice