Enricher Class
Defines the base enricher class.
Initialize a new instance.
- Inheritance
-
builtins.objectEnricher
Constructor
Enricher(enable_telemetry: bool = False)
Parameters
Name | Description |
---|---|
enable_telemetry
|
Indicates whether to send telemetry. Default value: False
|
enable_telemetry
Required
|
Indicates whether to send telemetry. |
Methods
enrich |
Enrich customer data with public data by applying selectors and an aggregator. |
enrich
Enrich customer data with public data by applying selectors and an aggregator.
enrich(customer_data: CustomerData, public_data: PublicData, location_selector: EnricherLocationSelector, time_selector: EnricherTimeSelector, aggregator: Aggregator) -> Tuple[CustomerData, PublicData, CustomerData, List[Tuple[str, str]]]
Parameters
Name | Description |
---|---|
customer_data
Required
|
An instance of a customer data derived class. |
public_data
Required
|
An instance of a public data derived class. |
location_selector
Required
|
An instance of an enricher location selector derived class. |
time_selector
Required
|
An instance of an enricher time selector derived class. |
aggregator
Required
|
An instance of an aggregator derived class. |
Returns
Type | Description |
---|---|
A tuple of: (
a new instance of class |
Attributes
debug
debug = False