Usage Event in Azure Recommendations Solutions Template

こ雲淡風輕ζ 提交于 2020-01-17 01:14:12

问题


In the deprecated Recommendations API, there is an API to upload Usage Event. In the new Recommendations Solutions Template, I could not find that API call. The new service seems to only accept usage CSV file. Could someone please confirm this?


回答1:


As you mention, there is no API to upload a single usage event in the recommendations solution template (http://aka.ms/recopcs).

The workaround would be to open a file from blob storage (let's call it usageDelta.csv), add a line of content to it, and then write it back to blob-storage.

Note that you could create an "Append Blob" if you would like to do this efficiently. Here is a blog with someone doing something similar:

https://blogs.technet.microsoft.com/thbrown/2015/08/26/azure-blob-now-has-append/

Thanks!

Luis Cabrera | PM - Recommendations API | Cloud AI Platform



来源:https://stackoverflow.com/questions/48510241/usage-event-in-azure-recommendations-solutions-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!