Describes a single object from livestatus. More...
Public Member Functions | |
__construct ($values, $prefix) | |
Create an instance of the given type. | |
get_state_text () | |
Return the state as text. | |
get_state_type_text_uc () | |
Return the state type, as text in uppercase. | |
get_first_group () | |
Return the name of one of the services groups the object is member of. | |
get_checks_disabled () | |
Returns true if checks are disabled. | |
get_duration () | |
Returns the duration since last state change. | |
get_notes_url () | |
Return the notes url with macros expanded. | |
get_notes () | |
Return the notes with macros expanded. | |
get_action_url () | |
Return the action url with macros expanded. | |
get_comments_count () | |
Returns the number of comments related to the service. | |
get_check_type_str () | |
Get the check type as string (passive/active). | |
get_custom_commands () | |
s Get a list of custom commands for the service | |
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.
Service_Model::__construct | ( | $ | values, | |
$ | prefix | |||
) |
Create an instance of the given type.
Don't call dirctly, called from *Set_Model-objects
Reimplemented from BaseService_Model.
Service_Model::$macros [static] |
array( '$HOSTNAME$' => 'host.name', '$HOSTADDRESS$' => 'host.address', '$HOSTDISPLAYNAME$' => 'host.display_name', '$HOSTALIAS$' => 'host.alias', '$HOSTSTATE$' => 'host.state_text_uc', '$HOSTSTATEID$' => 'host.state', '$HOSTSTATETYPE$' => 'host.state_type_text_uc', '$HOSTATTEMPT$' => 'host.current_attempt', '$MAXHOSTATTEMPTS$' => 'host.max_check_attempts', '$HOSTGROUPNAME$' => 'host.first_group', '$SERVICEDESC$' => 'description', '$SERVICEDISPLAYNAME$' => 'display_name', '$SERVICEGROUPNAME$' => 'first_group', '$SERVICESTATE$' => 'state', '$CURRENT_USER$' => 'current_user' )
A list of macros to expand for the current object.
Reimplemented from Object_Model.
Service_Model::$rewrite_columns [static] |
array( 'state_text_uc' => array('state_text'), '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('host.name', 'description'), 'check_type_str' => array('check_type') )
An array containing the custom column dependencies.
Reimplemented from BaseObject_Model.