ASP.NET 运行状况监控配置,“eventName”的有效值 属性
配置运行状况监控时,eventName 属性的有效值是什么?
<system.web>
...
<healthMonitoring enabled="true" heartbeatInterval="0">
<providers>
<add
name="exampleMailWebEventProvider"
type="System.Web.Management.SimpleMailWebEventProvider"
to="[email protected]"
from="[email protected]"
buffer="false"
subjectPrefix="[Exception] " />
</providers>
<rules>
<add
name="Testing Mail Event Providers"
eventName="All Events"
provider="exampleMailWebEventProvider"
profile="Default"
minInstances="1"
maxLimit="Infinite"
minInterval="00:01:00"
custom="" />
</rules>
</healthMonitoring>
我的 Google-fu(和 MSDN)让我失望了,我找不到您可以订阅的所有其他默认/常见事件的列表。
What are the valid values for the eventName attribute when configuring Health Monitoring?
<system.web>
...
<healthMonitoring enabled="true" heartbeatInterval="0">
<providers>
<add
name="exampleMailWebEventProvider"
type="System.Web.Management.SimpleMailWebEventProvider"
to="[email protected]"
from="[email protected]"
buffer="false"
subjectPrefix="[Exception] " />
</providers>
<rules>
<add
name="Testing Mail Event Providers"
eventName="All Events"
provider="exampleMailWebEventProvider"
profile="Default"
minInstances="1"
maxLimit="Infinite"
minInterval="00:01:00"
custom="" />
</rules>
</healthMonitoring>
My Google-fu (and MSDN) has failed me, and I can't find a list of all the other default/common events you can subscribe to.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
... aaaaa 我们开始:MSDN,用于健康监控的 eventMappings 元素
(令人惊奇的是,一点额外的努力和耐心可以让你走多远)
... aaaaaand here we go: MSDN, eventMappings Element for healthMonitoring
(amazing how far a little extra effort and patience can get you)
查看 %WINDIR%\Microsoft.NET\Framework\version\CONFIG 文件夹中的 web.config
Check out the web.config in your %WINDIR%\Microsoft.NET\Framework\version\CONFIG folder