Package onep :: Package policyservice :: Module policymap :: Class PolicyStatFilter
[frames] | no frames]

Class PolicyStatFilter


Filter for policy map statistics

You can retrieve batches of PolicyStatistics by setting "max_entry_count" and passing in the same PolicyStatFilter instance until all statistics are recieved.

policy - PolicyMap class to get statistics from targets - list of Target classes (optional) statistic_category - StatisticCategory (default StatisticCategory.ALL) poll_interval_sec - Polling interval per second (optional) poll_interval_msec - Polling interval per milisecond (optional) max_entry_count - Maximum entries retrieved (used for batching)

stats_result - list of EntryStatistics classes

Instance Methods
 
__init__(self, policy, targets=[], statistic_category=StatisticCategory.ALL, poll_interval_sec=0, poll_interval_msec=0, _entry_start=0, max_entry_count=0)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__str__(self)
str(x)

Inherited from PolicyFilter: targets

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

Properties

Inherited from object: __class__

Method Details

__init__(self, policy, targets=[], statistic_category=StatisticCategory.ALL, poll_interval_sec=0, poll_interval_msec=0, _entry_start=0, max_entry_count=0)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)