Describes a single object from livestatus. More...
Public Member Functions | |
__construct ($values, $prefix) | |
Create an instance of the given type. | |
get_state_text () | |
Get state, as text. | |
get_state_text_uc () | |
Get the state, as uppercase. | |
get_state_type_text_uc () | |
get the state type, as text in uppercase (HARD/SOFT) | |
get_checks_disabled () | |
get if checks are disabled | |
get_first_group () | |
Get the first host group of the host group memberships. | |
get_duration () | |
Get duration. | |
get_notes_url () | |
Get the notes url, with macros expanded. | |
get_notes () | |
Get the notes field, with macros expanded. | |
get_action_url () | |
Get the action url with macros expanded. | |
get_comments_count () | |
get the number of comments associated to the host | |
get_check_type_str () | |
Get check type, as a string ("active" or "passive"). | |
get_custom_commands () | |
Get a list of custom commands for the host. | |
Static Public Attributes | |
static | $macros |
A list of macros to expand for the current object. | |
static | $rewrite_columns |
An array containing the custom column dependencies. |
Describes a single object from livestatus.
Host_Model::__construct | ( | $ | values, | |
$ | prefix | |||
) |
Create an instance of the given type.
Don't call dirctly, called from *Set_Model-objects
Reimplemented from BaseHost_Model.
Host_Model::$macros [static] |
array( '$HOSTNAME$' => 'name', '$HOSTADDRESS$' => 'address', '$HOSTDISPLAYNAME$' => 'display_name', '$HOSTALIAS$' => 'alias', '$HOSTSTATE$' => 'state_text_uc', '$HOSTSTATEID$' => 'state', '$HOSTSTATETYPE$' => 'state_type_text_uc', '$HOSTATTEMPT$' => 'current_attempt', '$MAXHOSTATTEMPTS$' => 'max_check_attempts', '$HOSTGROUPNAME$' => 'first_group', '$CURRENT_USER$' => 'current_user' )
A list of macros to expand for the current object.
Reimplemented from Object_Model.
Host_Model::$rewrite_columns [static] |
array( 'state_text_uc' => array('state_text'), 'state_type_text_uc' => array('state_type'), 'state_text' => array('state','has_been_checked'), 'first_group' => array('groups'), 'checks_disabled' => array('active_checks_enabled'), 'duration' => array('last_state_change'), 'comments_count' => array('comments'), 'config_url' => array('name'), 'check_type_str' => array('check_type') )
An array containing the custom column dependencies.
Reimplemented from BaseObject_Model.