Class ServiceGroupStats
source code
object --+
|
base.AxObject --+
|
ServiceGroupStats
Implementation of the aXAPI slb.service_group.fetchAllStatistics/.fetchStatistics method to
collect the SLB service group statistics data
Usage:
# Service group stats with following data fields: all read-only
# name service group name.
# protocol L4 protocol of this service group, TCP(2) or UDP(3)
# status member status
# disabled(0)
# all members up (1)
# partition up(2)
# functional up (3)
# down (4)
# unknown (5)
# 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
# tot_reqs total number of requests, ulong64
# tot_succ_reqs total number of successful requests, ulong64
# member_stat_list tag for service group members
# server server IPv4 or IPv6 address
# port server port number
# status member status, up(1), down (4), unknown(5)
# 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
# tot_reqs total number of requests, ulong64
# tot_succ_reqs total number of successful requests, ulong64
# Example:
all_group_stats = ServiceGroupStats.getAll()
for grp in all_group_stats:
# work grp for stats data
print grp
# get the stats data for g1
aGroup = ServiceGroupStats.searchByName(name='g1')
print aGroup
|
__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__
|
|
getAll()
method : slb.service_group.fetchAllStatistics |
source code
|
|
|
|
|
__display__ = [ ' name ' , ' status ' , ' protocol ' ]
|
|
__obj_name__ = ' service_group_stat_list '
|
|
__obj_readonly__ = True
|
|
__xml_convrt__ = { ' member_stat_list ' : ' member_stat ' , ' service_ ...
|
Inherited from object :
__class__
|
x.__init__(...) initializes x; see help(type(x)) for signature
- Overrides:
object.__init__
- (inherited documentation)
|
__xml_convrt__
- Value:
{ ' member_stat_list ' : ' member_stat ' ,
' service_group_stat_list ' : ' service_group_stat ' }
|
|