Package prlsdkapi :: Class StatUser
[hide private]
[frames] | no frames]

Class StatUser

object --+    
         |    
   _Handle --+
             |
            StatUser

Provides methods for obtaining user session statistics. To obtain the object for a specific user, use the Statistics.get_user_stat method.

Instance Methods [hide private]
 
get_user_name(self)
Return the session user name.
 
get_service_name(self)
Return the name of the host system service that created the session.
 
get_host_name(self)
Return the hostname of the client machine from which the session was initiated.
 
get_session_time(self)
Return the session duration, in seconds.

Inherited from _Handle: __del__, __init__, add_ref, free, from_string, get_handle_type, get_package_id, get_type

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_user_name(self)

 

Return the session user name.

Returns:
A string containing the user name.

get_service_name(self)

 

Return the name of the host system service that created the session.

Returns:
A string containing the service name.

get_host_name(self)

 

Return the hostname of the client machine from which the session was initiated.

Returns:
A string containing the client hostname.

get_session_time(self)

 

Return the session duration, in seconds.

Returns:
A integer containing the result.