Static Public Member Functions |
static | get_state ($text) |
| Return state as number from string format.
|
static | get_label ($state) |
| Return state as label from number format.
|
static | get_color ($state) |
| Return state as color from number format.
|
Protected Attributes |
| $belongs_to = array('device') |
Member Function Documentation
Monitor_host_Model::delete_hosts |
( |
|
$ids = array() , |
|
|
|
$column = 'device_id' |
|
) |
| |
Monitor_host_Model::get_all_hosts_by_state |
( |
|
$state | ) |
|
Returns all hosts by given state to notification.
- Author
- Michal Kliment
- Parameters
-
- Returns
- type
Monitor_host_Model::get_all_monitored_hosts |
( |
|
$priority = NULL , |
|
|
|
$order_by = NULL , |
|
|
|
$filter_sql = '' |
|
) |
| |
Return all monitored hosts.
- Author
- Michal Kliment
- Parameters
-
type | $priority | |
string | $order_by | |
type | $filter_sql | |
- Returns
- type
Monitor_host_Model::get_all_priorities |
( |
| ) |
|
Return all priorities.
- Author
- Michal Kliment
static Monitor_host_Model::get_color |
( |
|
$state | ) |
|
|
static |
Return state as color from number format.
- Author
- Michal Kliment
- Parameters
-
- Returns
- boolean
static Monitor_host_Model::get_label |
( |
|
$state | ) |
|
|
static |
Return state as label from number format.
- Author
- Michal Kliment
- Parameters
-
- Returns
- boolean
Monitor_host_Model::get_max_state_changed_diff |
( |
|
$state | ) |
|
Return maximum diff between state changed date and last attempt date.
- Author
- Michal Kliment
- Parameters
-
- Returns
- type
static Monitor_host_Model::get_state |
( |
|
$text | ) |
|
|
static |
Return state as number from string format.
- Author
- Michal Kliment
- Parameters
-
- Returns
- type
Monitor_host_Model::insert_hosts |
( |
|
$ids = array() , |
|
|
|
$priority = 0 |
|
) |
| |
Adds hosts to monitoring.
- Author
- Michal Kliment
- Parameters
-
- Returns
- type
Monitor_host_Model::update_host |
( |
|
$ip_address, |
|
|
|
$state, |
|
|
|
$latency |
|
) |
| |
Update host with data from fping.
- Author
- Michal Kliment
- Parameters
-
type | $ip_address | |
type | $state | |
null | $latency | |
- Returns
- type
Monitor_host_Model::update_hosts |
( |
|
$ids = array() , |
|
|
|
$priority = 0 |
|
) |
| |
The documentation for this class was generated from the following file: