从IBM MobileFirst analytics v 7.0.0通过URL(REST API)导出数据 [英] Exporting Data via URL(REST API) from IBM MobileFirst analytics v 7.0.0
问题描述
我需要通过URL(REST API)导出各种事件类型的数据,可以从分析控制台手动下载。 (管理 - >导出数据)。
这些事件类型包括自定义活动,服务器日志等,如事件类型下拉列表中所示。
I need to export data for various event types via URL(REST API) which can be manually downloaded from analytic console. (Administration -> Export Data). These event type includes "Custom Activity", "Server Logs" etc as given in Event Type drop down.
我发现API文档可供IBM使用Mobile First Platform版本v7.1.0并且能够通过7.1.0版本的URL导出它。
I found the API documentation is available for IBM Mobile First Platform version v7.1.0 and was able to export it via URL in v 7.1.0.
但是当我转移到IBM Mobile First Platform版本7.0.0时,我没有找到类似的API来导出这些类似于v 7.1.0的事件类型数据。
But When I moved to IBM Mobile First Platform version 7.0.0, I did not find similar API exposed to export these event type data similar to v 7.1.0.
如果有的话一个尝试通过URL(API)导出v 7.0.0中的各种事件类型的数据,请帮助提供可用于导出此数据的任何文档或确切的URL。
If any one tried to export data for various event types in v 7.0.0 via URL(API), please help with any documentation or exact URL which can be used to export this data.
谢谢
推荐答案
这在7.0中有效:
卷曲-XGET -G'http://:/ analytics-service / data / exportData / apps / worklight / export' - data-urlencode'query = {level:,server: 格式: CSV, 一个时间间隔: 天, 共收取TIMEAMOUNT - 50 的startDate:1475269200000, 结束日期:1482271200000, 事件: server_logs, 限制:10,offset:0,tenant:worklight}' - u admin:admin -o export.csv
curl -XGET -G 'http://:/analytics-service/data/exportData/apps/worklight/export' --data-urlencode 'query={"level":"","server":"","format":"csv","timeInterval":"day","timeAmount":-50,"startDate":1475269200000,"endDate":1482271200000,"event":"server_logs","limit":10,"offset":0,"tenant":"worklight"}' -u admin:admin -o export.csv
注意URL为:/ data / exportData / apps / worklight / export
Note the URL is: /data/exportData/apps/worklight/export
这篇关于从IBM MobileFirst analytics v 7.0.0通过URL(REST API)导出数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!