ASP.NET 运行状况监控配置,“eventName”的有效值 属性

发布于 2024-07-24 23:41:33 字数 1053 浏览 6 评论 0原文

配置运行状况监控时,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夜光 2024-07-31 23:41:33

... aaaaa 我们开始:MSDN,用于健康监控的 eventMappings 元素
(令人惊奇的是,一点额外的努力和耐心可以让你走多远)

... aaaaaand here we go: MSDN, eventMappings Element for healthMonitoring
(amazing how far a little extra effort and patience can get you)

眼泪也成诗 2024-07-31 23:41:33

查看 %WINDIR%\Microsoft.NET\Framework\version\CONFIG 文件夹中的 web.config

Check out the web.config in your %WINDIR%\Microsoft.NET\Framework\version\CONFIG folder

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文