Export (0) Print
Expand All

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.

<configuration> Element
  system.web Element (ASP.NET Settings Schema)
    healthMonitoring Element (ASP.NET Settings Schema)
      profiles Element for healthMonitoring (ASP.NET Settings Schema)
        add Element for profiles for healthMonitoring (ASP.NET Settings Schema)
<add
     name="profile name"
     minimumInstances="minimum number of event occurrences"
     maximumLimit="maximum number of event occurrences"
     minimumInterval="minimum interval between events" />

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.

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="" />

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>

Configuration section handler

System.Web.Configuration.HealthMonitoringSection

Configuration member

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

Community Additions

ADD
Show:
© 2015 Microsoft