SERVICE_T
Operates on a service
This topic lists the expressions that are provided by this class.
-
CONNECTIONSReturns number of connections on the service as an unsigned long number.
Returns: unsigned_long_at
MONITOR (text_t monitor_name)
Used for monitor expressions. These expressions raises an undef if monitor with the given name doesn't exist.
Parameters``:
monitor_name- Monitor name
Returns: monitor_t
-
NAMEReturns the name of the service.
Returns: text_t
-
RESPTIMEReturns as a number, the response time in micro-seconds. RESPTIME is the TTFB (Time To recieve First Byte) from all the backend services.
Returns: num_at
SNMP_TABLE (uint index)
Returns the load entry in the SNMP table at the given index for the service.
Parameters (expressions not allowed):
index- Index Raises an undef when service doesnot have SNMP load table or the given index is out of boundary (valid index values are 0-9).
Returns: unsigned_long_at
-
STATEReturns the state of service.
Returns: vserver_state_e
-
SURGECOUNTReturns as a number, the number of requests in surge queue of service.
Returns: num_at
-
THROUGHPUTReturns throughput of the service in Mbps (Megabits per sec) as an unsigned long number.
Returns: unsigned_long_at