Constructor
new Monitor(opts)
Create a monitof for a time interval.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts | MonitorOptions | Properties
|
- Source
Classes
Methods
probeUrl(url, jsonFilter) → {Probe}
Add a probe to monitor the given url
Parameters:
Name | Type | Description |
---|---|---|
url | url | resource to monitor |
jsonFilter | JsonFilter | expect JSON response (see properties for UrlProbe.normalizeState()). If omitted, just record the status code. If null, record entire state. |
- Source
Returns:
probe
- probe.url the URL being probed
- probe.jsonFilter see jsonFilter parameter
- probe.stateLog StateLog instance
- Type:
- Probe
start()
Start monitor. Currently this can only be called once
- Source
stop()
Stop monitoring and free up all resources.
- Source