Offline Telemetry
Scenario
An educational Institution XYZ, with over three thousand students, is spread across three locations. XYZ institute has decided to use Sunbird for its digital learning solution to provide more scalable and effective education to its students. As the institute mainly operates from the rural area, internet connectivity is a challenge at most branches.
X is a student who resides in an area where internet connection is poor but, he has access to smartphones, tablets and other handheld devices. The student uses the Sunbird mobile app frequently in offline mode to consume content created by his educational institute.
The Admin of the institute wants to access the telemetry data of each students’ device for better decision making. The admin operates from the urban area and has full access to internet connection. In that case, admin can ask the student X to share the telemetry data with him.
Using the Share Telemetry feature student X can share the telemetry data as per his convenience with the admin via email or via any messaging apps like Whatsapp, messenger and so on. The admin now can sync the telemetry data with a server by using the shared telemetry file. The student, X can even sync the data to a server by himself by clicking Sync Now option when he comes online.
Overview
Telemetry is a term used for technologies that automatically record and measure software- generated, statistical data from real-world use. Telemetry is used in a myriad of industries from tracking spacecraft, medical monitoring, tracking wildlife, and so on.
The concept of telemetry events is used to identify: Who did what, on what, and where, using what, about what?
Telemetry event specifications:
Telemetry events are broad, human-readable actions, that can be tracked as a string. Events are used to categorize telemetry data. They are the basic unit for analytics and help identify user navigation or flow. All events follow a common data structure, though the event data structure (“edata”) differs for each event.
All events data is captured via a common event JSON structure. Depending on the event, edata element carries event specific data. All events have unique event codes (IDs).
The complete data structure is as follows:
The level of data collected is a discrete decision of an organization or business. Analysis of this data offers insights into product and user behavior and usage patterns, driving business decisions and research outcomes.
For more information, please refer to the Telemetry Specification page.
Prerequisites
The API Key for access and basic authentication
An API client to make API calls. For example use Postman refer Using Postman The offline user must share telemetry file of Sunbird app with admin
Admin must download the shared file and open the file with Sunbird app installed on his or her device
Sharing telemetry file:
To share the telemetry file, the offline user must follow the steps listed:
Open the Sunbird app installed on the device
Navigate to Profile> Setting> Data Sync
Click Share Telemetry to share the file which contains telemetry data of the user’s Sunbird app
Using shared telemetry file:
To sync the telemetry data, the admin must use the shared telemetry file and follow the steps as listed below:
Download the shared telemetry
Open the shared file with Sunbird app installed on the admin’s mobile
Click Sync Now
Note: If the admin doesn’t click Sync Now, the file will be auto-synced after a certain interval of time
Workflow
The telemetry sync API allows applications to sync telemetry data.
Request URL: /api/data/v1/telemetry Request Method: POST
Request Headers:
Request Body:
Response Body:
200 Telemetry Success response
Response Code:
200: Telemetry Success response
400: Invalid request structure
401: Authentication failure
Last updated