Package onep :: Package policyservice :: Module statistics :: Class EntryStatistics
[frames] | no frames]

Class EntryStatistics



Service policy delta statistics

time_stamp     - Time statistics were retrieved
last_data_time - Last time statistics were retrieved
class_stats    - class ClassStatistics
match_stats    - list of dict {type, class MatchStatistics}
action_stats   - *depends on ActionStatisticType

ActionStatisticType - GENERIC - list of dict {Action.ActionType, packets, bytes}
                      POLICE  - list of dict {Action.ActionType, class PoliceStatistics}
                      QUEUE   - list of dict {Action.ActionType, class QueueStatistics}

Instance Methods
 
__init__(self, time=0, last_data_time=0, class_stats=[], match_stats=[], action_stats=[])
x.__init__(...) initializes x; see help(type(x)) for signature
 
class_stats(self, cstats)
 
match_stats(self, mstats)
 
action_stats(self, astats)
 
__str__(self)
str(x)

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

Class Variables
  ActionStatisticType = enum(GENERIC= 0, POLICE= 1, QUEUE= 2)
Properties

Inherited from object: __class__

Method Details

__init__(self, time=0, last_data_time=0, class_stats=[], match_stats=[], action_stats=[])
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

class_stats(self, cstats)

 
Decorators:
  • @class_stats.setter

match_stats(self, mstats)

 
Decorators:
  • @match_stats.setter

action_stats(self, astats)

 
Decorators:
  • @action_stats.setter

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)