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

Class VirtualServerStats

source code

   object --+    
            |    
base.AxObject --+
                |
               VirtualServerStats


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

Usage:
    # Virtual server stats with following data fields: all read-only
    # name          Virtual server name.
    #     ***One of the following token (address, subnet, acl_id, acl_name):
    # address       virtual server address, either IPv4 or IPv6
    # subnet        IPv4 subnet 
    #     address   address of subnet
    #     mask_len  the length of this subnet
    # acl_id        IPv4 ACL id
    # acl name      IPv6 ACL name
    # status        Virtual server status
    #     0:    disabled
    #     1:    all up
    #     2:    partition up
    #     3:    function up
    #     4:    down
    #     5:    unknown
    # 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
    # vport_stat_list    tag for the virtual server ports
    #      port        virtual server port number
    #      protocol    virtual port protocol
    #             TCP        2
    #             UDP        3
    #             Other      4
    #             RTSP       5
    #             FTP        6
    #             MMS        7
    #             SIP        8
    #             FAST-HTTP  9
    #             TCP-PROXY  10
    #             HTTP       11
    #             HTTPS      12
    #             SSL-PROXY  13
    #             SMTP       14
    #             SIP-TCP    15
    #             SIP-STL    16
    #             DIAMETER   17
    #             DNS-UDP    18
    #             TFTP       19
    #      status      virtual port status
    #             0:    disabled
    #             1:    all up
    #             2:    partition up
    #             3:    function up
    #             4:    down
    #             5:    unknown
    #      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_vip_stats = VirtualServerStats.getAll()
    for vip in all_vip_stats:
        # work vip for stats data
        print vip
    # get the stats data for vip1
    avip = VirtualServerStats.searchByName(name='vip1')
    print avip

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.virtual_server.fetchAllStatistics
source code
 
searchByName(name) source code
Class Variables [hide private]
  __display__ = ['name', 'status', 'protocol']
  __obj_name__ = 'virtual_server_stat_list'
  __obj_readonly__ = True
  __xml_convrt__ = {'virtual_server_stat_list': 'virtual_server_...
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:
{'virtual_server_stat_list': 'virtual_server_stat',
 'vport_stat_list': 'vport_stat'}