Current_status_Model Class Reference
Retrieves and manipulates current status of hosts (and services?).
More...
Detailed Description
Retrieves and manipulates current status of hosts (and services?).
Member Function Documentation
Current_status_Model::analyze_status_data |
( |
|
) |
|
Analyze all status data for hosts and services Calls
- Returns:
- bool
Current_status_Model::get_available_states |
( |
$ |
what = 'host' |
) |
|
List available states for host or service.
- Parameters:
-
| $what | string 'host' (or 'service') |
- Returns:
- array
Current_status_Model::host_status |
( |
|
) |
|
Fetch current host status from db for current user.
- Returns:
- bool indicating whether query worked
static Current_status_Model::instance |
( |
|
) |
[static] |
Current_status_Model::program_status |
( |
|
) |
|
Fetch current host status from db for current user.
- Returns:
- bool indicating whether query worked
Current_status_Model::service_status |
( |
|
) |
|
Fetch and calculate status for all services for current user.
- Returns:
- bool indicating whether query worked
static Current_status_Model::status_text |
( |
$ |
db_status, |
|
|
$ |
db_checked, |
|
|
$ |
type = 'host' | |
|
) |
| | [static] |
Translates a given status from db to a readable string.
- Parameters:
-
| $db_status | int |
| $db_checked | boolean |
| $type | string = host |
- Returns:
- string
The documentation for this class was generated from the following file: