Background
...
- noOfUniqueDevices: This metric can be computed by filtering out records with d_period = 0 (cumulative), d_device_id = 'all' and summing up the m_total_devices_count field.
- totalContentPlaySessions: This metric can be computed by filtering out records with d_period = 0 (cumulative), d_type = 'content', d_mode = 'play' and summing up the m_total_sessions field.
- totalTimeSpent: This metric can be computed by filtering out records with d_period = 0 (cumulative), d_device_id = 'all' and summing up on m_total_ts field.
- totalDigitalContentPublished: This metric can be computed from the search api. We need to use the composite search API /composite/v3/search and filter by contentType Resource to get a count of total number of live content.
Code Block | ||
---|---|---|
| ||
{ "eid":"ME_DASHBOARD_CUMULATIVE_SUMMARY", "ets":1535417736822, "syncts":1535390695986, "ver":"1.0", "mid":"25791B1E895129968CBECD7A39C0822E", "context":{ "pdata":{ "id":"AnalyticsDataPipeline", "ver":"1.0", "model":"DashboardCumulativeSummary" }, "granularity":"CUMULATIVE" }, "edata"metrics_summary":{ "eks": { "noOfUniqueDevices":100, "totalDigitalContentPublished": 400, "totalContentPlaySessions":200, "totalTimeSpent":500.96, "telemetryVersion":"3.0" } } } |
The cumulative summary files will be uploaded to cloud storage using Secor. The sunbird platform team will pull the cumulative summary file from the cloud storage. There will be a new file generated everyday with the date appended to the file name.