Export raw reports
Learn about exporting raw reports in the MPF Operational Analytics.
Raw analytics data can be exported from the MPF Operational Analytics for the following types of data:
- Application session data
- Adapter invocation data
- JSONStore operation data
This data can be exported through a REST API that is exposed by the MPF Operational Analytics. Currently, the supported export formats include JSON and CSV.
Export application sessions
The following example shows the format for exporting analytics data for application sessions:
/export/{tenant}/sessions/{days}/{gadgetName}/{gadgetVersion}/{env}/{model}/{os}/{limit}/{offset}
If the analytics console is hosted here:
http://hostname.ibm.com:9080/analytics
Then, session data can be exported by invoking by following link, and passing an Accept header that specifies the desired content mime type:
http://hostname.ibm.com:9080/analytics/data/export/{tenant}/sessions/{days}/{gadgetName}/{gadgetVersion}/{env}/{model}/{os}/{limit}/{offset}
For example, using the curl command-line tool:
curl -H "Accept: application/csv" "http://hostname.ibm.com:9080/analytics/data/export/worklight/sessions/30/TestApp/*/iphone/*/7.0/100/0"This previous curl command exports data from the tenant named worklight for all versions of the application called TestApp for the last 30 days. It returns only data for the iPhone environment, for all models of the iPhone, and only for iOS 7.0. It returns the first 100 results found and start with the first result (limit = 100, offset = 0).
- The default tenant is worklight. If we did not configure a specific tenant for the MPF Operational Analytics, then you should use worklight.
Export adapter invocations
The following example shows the format for exporting analytics data for adapter invocations:
/export/{tenant}/adapters/{days}/{adapter}/{procedure}/{gadgetName}/{gadgetVersion}/{env}/{model}/{os}/{limit}/{offset}
For example, using the curl command-line tool:
curl -H "Accept: application/csv" "http://hostname.ibm.com:9080/analytics/data/export/worklight/adapters/10/UploadAdapter/uploadProcedure/TestApp/1.0/android/nexus/4.4/10/0"
Export JSONStore operation data
The following example shows the format for exporting analytics data for JSONStore operation data:
/export/{tenant}/jsonstore/{days}/{gadgetName}/{gadgetVersion}/{env}/{model}/{os}/{collection}/{operation}/{limit}/{offset}
For example, using the curl command-line tool:
curl -H "Accept: application/csv" "http://hostname.ibm.com:9080/analytics/data/export/worklight/jsonstore/100/*/*/iphone/*/*/people/add/100/50"
Parent topic: Administration