Send Event Request Overview
The data collector send event request provides various event models to send application & vehicle sensor events to the cloud. Telenav currently supports the below listed events for different scenarios, the corresponding data models provided facilitate building events by filling mandatory and optional data fields using the builder.
Send Event Request
This "input" API lets a producer report an event, generate and send the event data to DataCollector
Key methods
Method | Details |
---|---|
setEvent(Event event) | The specific event which comes from com.telenav.datacollector.model with event data included |
Sample code
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 |
|
Response example
1 2 3 4 5 |
|
You can also call API asynchronously using asyncCall() method of builder if no need to cancel the request.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Response example
1 2 3 4 5 |
|
Please see the API reference for the main classes related to Data Collector.
Event Categories
Currently, all supported events can be categorized as below, still working in progress: