Share via


healthMonitoring에 대한 eventMappings 요소(ASP.NET 설정 스키마)

[이 설명서는 미리 보기 전용이며, 이후 릴리스에서 변경될 수 있습니다. 비어 있는 항목은 자리 표시자로 포함됩니다.]

관련 이벤트 형식에 이벤트 이름을 매핑합니다.

이 요소는 .NET Framework 버전 2.0에서 새로 도입되었습니다.

<eventMappings>
    <add.../>
    <remove.../>
    <clear />
</eventMappings>

특성 및 요소

다음 단원에서는 이 단원의 특성, 자식 요소 및 부모 요소에 대해 설명합니다.

특성

없음

자식 요소

요소

설명

add

선택적 요소입니다.

이벤트 및 해당 이벤트를 구현하는 클래스의 이름을 지정합니다.

clear

선택적 요소입니다.

이벤트 이름 매핑을 모두 제거합니다.

remove

선택적 요소입니다.

지정된 이벤트 이름 매핑을 제거합니다.

부모 요소

요소

설명

configuration

공용 언어 런타임 및 .NET Framework 응용 프로그램에서 사용하는 모든 구성 파일의 필수 루트 요소를 지정합니다.

system.web

ASP.NET 구성 섹션의 루트 요소를 지정합니다.

healthMonitoring

상태 모니터링에 대한 응용 프로그램을 구성합니다.

설명

eventMappings 요소를 사용하면 이벤트 소스에 이름을 할당할 수 있습니다. 그런 다음 이러한 이름을 사용하여 구성의 healthMonitoring 섹션에 있는 rules 요소에서 이벤트 소스를 관련 이벤트 소비자(공급자)와 연결할 수 있습니다.

기본 구성

다음의 기본 eventMappings 요소는 .NET Framework 버전 2.0의 루트 Web.config 파일에 구성되어 있습니다.

<eventMappings>
      <add name="All Events" 
           type="System.Web.Management.WebBaseEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
          PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="Heartbeats" 
           type="System.Web.Management.WebHeartbeatEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="Application Lifetime Events" 
           type="System.Web.Management.WebApplicationLifetimeEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="Request Processing Events" 
           type="System.Web.Management.WebRequestEvent, 
       System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="All Errors" 
           type="System.Web.Management.WebBaseErrorEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="Infrastructure Errors" 
           type="System.Web.Management.WebErrorEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="Request Processing Errors" 
           type="System.Web.Management.WebRequestErrorEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="All Audits" 
           type="System.Web.Management.WebAuditEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="Failure Audits" 
           type="System.Web.Management.WebFailureAuditEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
      <add name="Success Audits" 
           type="System.Web.Management.WebSuccessAuditEvent, 
      System.Web,Version=2.0.0.0,Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" startEventCode="0" endEventCode="2147483647" />
</eventMappings>

예제

다음 코드 예제에서는 컬렉션에 이벤트 이름을 추가하는 방법을 보여 줍니다.

<eventMappings>
  <add name="SampleWebEvent"
    type= "Samples.AspNet.System.Web.Management.SampleWebEvent,
    SampleWebEvent,Version=0.0.0.0, Culture=neutral, 
    PublicKeyToken=f0c63b9a560d5e5a"/>
</eventMAppings>

요소 정보

Configuration section handler

System.Web.Configuration.HealthMonitoringSection

Configuration member

HealthMonitoringSection.EventMappings

Configurable locations

Machine.config

루트 수준의 Web.config

응용 프로그램 수준의 Web.config

Requirements

Microsoft IIS(인터넷 정보 서비스) 버전 5.0, 5.1 또는 6.0

.NET Framework 버전 2.0

Microsoft Visual Studio 2005

참고 항목

작업

How to: Lock ASP.NET Configuration Settings

참조

healthMonitoring 요소(ASP.NET 설정 스키마)

healthMonitoring의 eventMappings에 대한 add 요소(ASP.NET 설정 스키마)

healthMonitoring의 eventMappings에 대한 remove 요소(ASP.NET 설정 스키마)

healthMonitoring 요소의 eventMappings 요소에 대한 clear 요소(ASP.NET 설정 스키마)

System.Configuration

System.Web.Configuration

개념

ASP.NET Configuration Overview

ASP.NET Server Controls and Browser Capabilities

Securing Configuration

Configuration Inheritance

기타 리소스

ASP.NET Configuration Files

ASP.NET 구성 설정

일반 구성 설정(ASP.NET)

ASP.NET Configuration API