Interface AnalyticsClassifier
public interface AnalyticsClassifier
Before analytic events are recorded, they can be classified into
channels. Each channel can have a single
AnalyticsExporter
which
is responsible for exporting analytics from the device. This means that
the classifier is used to route interesting events into the correct
channels that correspond to exporters.
By combining classifiers and exporters, a given subset of analytics can be forwarded to an arbitrary destination. Since an event can be in multiple channels, this also allows routing events to multiple destinations.
- Since:
- 1.0
- Version:
- 2024-03-19
-
Method Summary
Modifier and TypeMethodDescriptionvoid
classifyAnalyticsRecord
(AnalyticsRecord record, Set<String> channels) Called to classify the channels that the record should be sent to.
-
Method Details
-
classifyAnalyticsRecord
Called to classify the channels that the record should be sent to. The classifier can examine the event and optionally add channel names to the provided set.- Parameters:
record
- the analytics record to examinechannels
- the set of channels to add to
-