flowbber.components.sink
¶Module implementating the Sink and FilterSink base classes.
All custom Flowbber sinks must extend from the Sink class.
Any Sink that inherits from the FilterSink class will have available the following configuration options:
List of patterns of data to include.
Matching is performed using Python’s fnmatch.
Default: ['*']
Optional: True
Schema:
{
'type': 'list',
'schema': {
'type': 'string',
},
}
Secret: False
List of paths to files containing patterns of data to include.
Matching is performed using Python’s fnmatch.
All unique patterns parsed from these files will be added to the ones defined
in the include
configuration option.
Default: []
Optional: True
Schema:
{
'type': 'list',
'schema': {
'type': 'string',
'empty': False,
},
}
Secret: False
List of patterns of data to exclude.
Matching is performed using Python’s fnmatch.
Default: []
Optional: True
Schema:
{
'type': 'list',
'schema': {
'type': 'string',
},
}
Secret: False
List of paths to files containing patterns of data to exclude.
Matching is performed using Python’s fnmatch.
All unique patterns parsed from these files will be added to the ones defined
in the exclude
configuration option.
Default: []
Optional: True
Schema:
{
'type': 'list',
'schema': {
'type': 'string',
'empty': False,
},
}
Secret: False
Sink
:
Main base class to implement a Sink.FilterSink
:
Common sink base class that adds several inclusion and exclusionflowbber.components.sink.
Sink
(index, type_, id_, optional=False, timeout=None, config=None)¶Main base class to implement a Sink.
Inheritance
distribute
(data)¶Distribute the collected data.
All sinks subclasses must implement this abstract method.
flowbber.components.sink.
FilterSink
(index, type_, id_, optional=False, timeout=None, config=None)¶Common sink base class that adds several inclusion and exclusion configuration options for filtering data before using it.
See FilterSink Options for more information.
Inheritance