gpt4 book ai didi

azure - HockeyApp 中自定义事件的自定义数据

转载 作者:行者123 更新时间:2023-12-04 19:00:27 25 4
gpt4 key购买 nike

上下文:HockeyApp 可以跟踪自定义事件,这是目前通过季前赛计划提供的功能。自定义事件有一些限制,包括

a limit of 300 unique event names per app per week.

可以通过调用特定方法来跟踪事件,例如

HockeyApp.Metrics.MetricsManager.TrackEvent("MyEventName");

问题:我们面临的挑战是需要记录每个事件的自定义数据,例如时间戳信息。如何实现这一目标?

背景:我们当前使用 Application Insights 并记录性能信息和事件,例如执行请求所需的时间。我们使用 HockeyApp 寻找解决方案(或解决方法)。

最佳答案

API documentation on github显示它能够向事件添加属性和测量值:

HockeyApp.MetricsManager.TrackEvent("Custom Event",
new Dictionary<string, string> { { "property", "value" } },
new Dictionary<string, double> { { "time", 1.0 } })

偶数名称有限,但 number of times an event can fire is not .

关于azure - HockeyApp 中自定义事件的自定义数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38299218/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com