add Element for profiles for healthMonitoring (ASP.NET Settings Schema)

Adds a profile to the profile collection.

This element is new in the .NET Framework version 2.0.

<add
     name="profile name"
     minimumInstances="minimum number of event occurrences"
     maximumLimit="maximum number of event occurrences"
     minimumInterval="minimum interval between events" />

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute Description

name

Required String attribute.

Specifies the profile name.

minimumInstances

Required Int32 attribute.

Specifies the minimum number of occurrences before an event is fired.

The default is 1.

maximumLimit

Required Int32 attribute.

Specifies the threshold after which events stop being fired.

The default is "Infinite".

minimumInterval

Required TimeSpan attribute.

Specifies the minimum time interval between two events, expressed as "hh:mm:ss".

The default is "00:00:00".

Child Elements

None.

Parent Elements

Element Description

configuration

Specifies the root element in every configuration file that is used by the common language runtime and the .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration section.

healthMonitoring

Configures an application for health monitoring.

profiles

Defines a collection of parameter sets that can be used when configuring events.

Remarks

The add element lets you collect sets of parameters that you use often when configuring events. Each set defines a profile.

Default Configuration

The following default add element is configured in the root Web.config file in the .NET Framework version 2.0.

<add name="Default" minInstances="1" maxLimit="Infinite" minInterval="00:01:00" custom="" />
<add name="Critical" minInstances="1" maxLimit="Infinite" minInterval="00:00:00" custom="" />

Example

The following code example shows how to configure a profile.

<healthMonitoring Enabled="true" heartBeatInterval="0">

  <profiles>
    <add name="Default"
      minInstances="1"
      maxLimit="Infinite"
      minInterval="00:01:00"/>
  </profiles>

</healthMonitoring>

Element Information

Configuration section handler

System.Web.Configuration.HealthMonitoringSection

Configuration member

System.Web.Configuration.HealthMonitoringSection.Profiles

Configurable locations

Machine.config

Root-level Web.config

Application-level Web.config

Requirements

Microsoft Internet Information Services (IIS) version 5.0, 5.1, or 6.0

The .NET Framework version 2.0

Microsoft Visual Studio 2005

See Also

Tasks

How to: Lock ASP.NET Configuration Settings

Reference

healthMonitoring Element (ASP.NET Settings Schema)
profiles Element for healthMonitoring (ASP.NET Settings Schema)
remove Element for profiles for healthMonitoring (ASP.NET Settings Schema)
clear Element for profiles for healthMonitoring (ASP.NET Settings Schema)
System.Configuration
System.Web.Configuration

Concepts

ASP.NET Configuration Overview
ASP.NET Web Server Controls and Browser Capabilities
Securing ASP.NET Configuration
ASP.NET Configuration Scenarios

Other Resources

ASP.NET Configuration Files
ASP.NET Configuration Settings
General Configuration Settings (ASP.NET)
ASP.NET Configuration API