WebHeartbeatEvent Class

Defines those health-monitoring events raised at a periodic interval.

Namespace: System.Web.Management
Assembly: System.Web (in system.web.dll)

public class WebHeartbeatEvent : WebManagementEvent
public class WebHeartbeatEvent extends WebManagementEvent
public class WebHeartbeatEvent extends WebManagementEvent
Not applicable.

ASP.NET health monitoring allows production and operations staff to manage deployed Web applications. The System.Web.Management namespace contains the health-event types responsible for packaging application health-status data and the provider types responsible for processing this data. It also contains supporting types that help during the management of health events.

The heartbeat health-monitoring events serve as a timer for the ASP.NET health-monitoring system. They are raised at an interval defined by the heartBeatInterval attribute of the healthMonitoring configuration section. The WebHeartBeatEvent uses the WebProcessStatistics class to obtain process information.


In most cases you will be able to use the ASP.NET health-monitoring types as implemented, and you will control the health-monitoring system by specifying values in the healthMonitoring configuration section. You can also derive from the health-monitoring types to create your own custom events and providers.

The following configuration file excerpt shows the configuration for the EventLogWebEventProvider so it can handle heartbeat health events.


The EventLogWebEventProvider and the heartbeat health event types to monitor are configured by default. The only thing you need to do is to define the rule to monitor the heartbeat health events. Remember that by default only the failure audits are logged.

  enabled="true" heartBeatInterval="100">

    <add name="Heart Beat Events"
      eventName=" HeartBeats"
      minInterval="00:01:00" />


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0