filters¶
- class pikos.filters.on_value.OnValue(field, *args)[source]¶
Bases: object
A record filter that remove the record when a value is not contained.
- field = str¶
The field to check for change.
- values¶
A list of values to use for the filtering.
- class pikos.filters.on_change.OnChange(field)[source]¶
Bases: object
A record filter that checks if the record field has changed.
A copy of the field value is stored in the object and compared against new values. On value changed the object returns True.
- field = str¶
The field to check for change.
- previous¶
Holds the value of the field.
Note
Filters and recorders can be shared between monitors. The filter however is not aware of ownership so use with care when shareing the same instance.