在仪表板中查看“用户报告趋势”区域。该图表告诉我们用户在过去30天内下载的报告数量。嗯……看起来Bob Bandit在11月17日下载了很多报告。让我们进一步调查。注意仪表板中的日期可能不同,因为它们反映了您使用Trailhead Data Manager上传事件数据的实际日期。让我们看一下仪表板中的“用户区域的报告名称”区域。
在运行Trailhead事件监视数据管理器之前,请确保您可以看到应用程序的仪表板。此外,您只需在Trailhead中运行一次Trailhead事件监视数据管理器。您不必使用它在您自己的组织中设置事件监控分析。(尽管您稍后使用称为Analytics Data Manager的东西来安排来自事件监视的数据流。)
从App Launcher中,选择Trailhead Data Manager。
在Trailhead Data Manager主页上,单击“ Trailhead事件监视”。
在“Trailhead事件监控”页面上,单击“ 获取DTC电子事件数据”。
成功上传数据后,您就可以创建Event Monitoring Analytics应用。
从App Launcher中,选择Analytics Studio。
单击右上角的齿轮图标,然后选择“ 数据管理器”。(这是Analytics Data Manager,不要与Trailhead Data Manager混淆。)
选择“ 数据流”子选项卡。
滚动到Analytics for CIO。打开应用程序名称对面最右侧的菜单,然后选择立即运行。(在本单元的后面部分,您将学习如何安排自动运行。现在,我们手动执行此操作。)
如果在Analytics for CIO项目的扩展列表中没有显示消息,则可以刷新页面以使其显示(可能需要几分钟)。收到消息后,就可以查看您的第一个
Country,Country_code,Region,Accounts,Value
Australia,aus,South Pacific,1898,22930651
China,chn,East Asia,2051,29754009
Europe,eur,Europe,4668,61238042
France,fra,Europe,2303,28746829
India,ind,Asia,2721,32037499
Italy,ita,Europe,1722,26340986
Japan,jpn,East Asia,2872,36916012
Russian Federation,rus,East Europe,1847,27387456
South Africa,zaf,Africa,879,9794857
South Korea,kor,East Asia,1643,21934785
United States of America,usa,North America,6527,87044191
Country,Country_code,Region,Accounts,Value
Australia,aus,South Pacific,1898,22930651
China,chn,East Asia,2051,29754009
Europe,eur,Europe,4668,61238042
France,fra,Europe,2303,28746829
India,ind,Asia,2721,32037499
Italy,ita,Europe,1722,26340986
Japan,jpn,East Asia,2872,36916012
Russian Federation,rus,East Europe,1847,27387456
South Africa,zaf,Africa,879,9794857
South Korea,kor,East Asia,1643,21934785
United States of America,usa,North America,6527,87044191
#!/usr/bin/python
import json
f = open('Downloads/test_la_zip_code_areas_2012.json', 'r')
json_contents = json.loads(f.read())
features = json_contents["features"]
for i in features:
i["id"] = i["properties"]["external_id"]
# If shrinking the size of the file is important,
# the properties node could be deleted afterwards:
# del i["properties"]
out_file = open("out_la_zip_code_areas_2012.json", "w")
out_file.write(json.dumps(features))
# out_file will not be sorted, which shouldn't affect anything,
# but to have it be sorted, use sort_keys=True in json.dumps
out_file.close()