CORE POS - Fannie
The CORE POS back end
|
Public Member Functions | |
__construct ($config) | |
check () | |
escalate ($json) | |
display ($json) | |
Protected Attributes | |
$config | |
API class for monitoring system status and building a dashboard.
COREPOS\Fannie\API\monitor\Monitor::__construct | ( | $config | ) |
$config | [FannieConfig] instance of configuration |
COREPOS\Fannie\API\monitor\Monitor::check | ( | ) |
Assess current status of system(s) being monitored by this class.
COREPOS\Fannie\API\monitor\Monitor::display | ( | $json | ) |
Convert system status to HTML so it can be displayed to a user. These return values are used to build web-based dashboards.
$json | [string] JSON-encoded string representing current system status. This is the value returned by the most recent call to check(). |
COREPOS\Fannie\API\monitor\Monitor::escalate | ( | $json | ) |
Determine whether system status is critical. Returning true tells the monitoring system to notify someone as soon as possible.
$json | [string] JSON-encoded string representing current system status. This is the value returned by the most recent call to check(). |