Module slb :: Class RealServerStats
[hide private]
[frames] | no frames]

Class RealServerStats

source code

   object --+    
            |    
base.AxObject --+
                |
               RealServerStats


Implementation of the aXAPI slb.server.fetchAllStatistics/.fetchStatistics method to 
collect the SLB server statistics data 

Usage:
    # Server stats with following data fields: all read-only
    # name              Server name.
    # host              Server IP address (IPv4 or IPv6) or dns name
    # status            Server status, either enabled(1) or disabled(0)
    # cur_conns         total number of current connections
    # tot_conns         total number of connections, ulong64
    # req_pkts          total number of request packets received, ulong64
    # resp_pkts         total number of response packets sent, ulong64
    # req_bytes         total number of request bytes received, ulong64
    # resp_bytes        total number of response bytes sent, ulong64
    # cur_reqs          total number of current requests
    # total_reqs        total number of requests, ulong64
    # total _reqs_succ  total number of successful requests, ulong64
    # port_stat_list    tag for the server ports
    #    port_num         server port number
    #    protocol         L3 protocol. TCP(2) or UDP(3)
    #    status           member status either enabled(1) or disabled(0)
    #    cur_conns        total number of current connections
    #    tot_conns        total number of connections, ulong64
    #    req_pkts         total number of request packets received, ulong64
    #    resp_pkts        total number of response packets sent, ulong64
    #    req_bytes        total number of request bytes received, ulong64
    #    resp_bytes       total number of response bytes sent, ulong64
    #    cur_reqs         total number of current requests
    #    total_reqs       total number of requests, ulong64
    #    total_reqs_succ  total number of successful requests, ulong64
    
    # Example: 
    all_server_stats = RealServerStats.getAll()
    for srv in all_server_stats:
        # work srv for stats data
        print srv
    # get the stats data for s1
    s = RealServerStats.searchByName(name='s1')
    print s

Instance Methods [hide private]
 
__init__(self, **params)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from base.AxObject: __getattr__, __getitem__, __repr__, __setattr__, __setitem__, __str__, dump, get, getInfo, getObjectDict, getRequestPostDataJson, getRequestPostDataXml

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

Static Methods [hide private]
 
getAll()
method : slb.server.fetchAllStatistics
source code
 
searchByName(name) source code
Class Variables [hide private]
  __display__ = ['name', 'host', 'status']
  __obj_name__ = 'server_stat_list'
  __obj_readonly__ = True
  __xml_convrt__ = {'port_stat_list': 'port_stat', 'server_stat_...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **params)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

__xml_convrt__

Value:
{'port_stat_list': 'port_stat', 'server_stat_list': 'server_stat'}