次の方法で共有


healthMonitoring の profiles の add 要素 (ASP.NET 設定スキーマ)

プロファイル コレクションにプロファイルを追加します。

この要素は、.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" />

属性および要素

以降のセクションでは、このセクションに示す属性、子要素、および親要素について説明します。

属性

属性

説明

name

必須の String 属性です。

プロファイル名を指定します。

minimumInstances

必須の Int32 属性です。

イベントを発生させる前の最小出現数を指定します。

既定値は、1 です。

maximumLimit

必須の Int32 属性です。

イベントの発生を停止させるしきい値を指定します。

既定値は、"Infinite" です。

minimumInterval

必須の TimeSpan 属性です。

2 つのイベント間の最小時間間隔を指定します。"hh:mm:ss" と表します。

既定値は、"00:00:00" です。

子要素

なし。

親要素

要素

説明

configuration

共通言語ランタイムおよび .NET Framework アプリケーションで使用されるすべての構成ファイルのルート要素を指定します。

system.web

ASP.NET 構成セクションのルート要素を指定します。

healthMonitoring

状態の監視に対応したアプリケーションを構成します。

profiles

イベント構成時に使用できるパラメーター セットのコレクションを定義します。

解説

add 要素では、イベントの設定時によく使用するパラメーターのセットを収集できます。 セットごとにプロファイルが定義されます。

既定の構成

次の既定の add 要素は、.NET Framework Version 2.0 においてルートの Web.config ファイルで構成されています。

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

使用例

プロファイルを構成する方法を次のコード例に示します。

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

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

</healthMonitoring>

要素情報

構成セクション ハンドラー

System.Web.Configuration.HealthMonitoringSection

構成メンバー

HealthMonitoringSection.Profiles

構成できる場所

Machine.config

ルート レベルの Web.config

アプリケーション レベルの Web.config

要件

Microsoft Internet Information Services (IIS) バージョン 5.0、5.1、または 6.0

.NET Framework Version 2.0

Microsoft Visual Studio 2005

参照

処理手順

方法 : ASP.NET 構成設定をロックする

参照

healthMonitoring 要素 (ASP.NET 設定スキーマ)

healthMonitoring の profiles 要素 (ASP.NET 設定スキーマ)

healthMonitoring の profiles の remove 要素 (ASP.NET 設定スキーマ)

healthMonitoring の profiles の clear 要素 (ASP.NET 設定スキーマ)

System.Configuration

System.Web.Configuration

概念

ASP.NET 構成の概要

ASP.NET Web サーバー コントロールとブラウザーの機能

ASP.NET 構成の保護

ASP.NET の構成のシナリオ

その他の技術情報

ASP.NET 構成ファイル

ASP.NET 構成設定

全般構成設定 (ASP.NET)

ASP.NET 構成 API