데이터 수집기 프로그래밍

데이터 수집기는 관리 코드 API인 개체 모델을 사용합니다.

모든 개체 모델은 클래스 계층을 기반으로 하며, 다양한 자식 클래스 생성이 있는 단일 루트 클래스로 구성됩니다. 각 자식 클래스는 컬렉션 또는 개별 클래스의 멤버일 수 있습니다. 다음 그림에서는 데이터 컬렉션 개체 모델의 중요 요소를 보여 줍니다.

데이터 수집기 개체 모델

Microsoft.SqlServer.Management.Collector 네임스페이스에는 다음과 같은 유형이 포함됩니다.

  • Microsoft.SqlServer.Management.Collector.CollectionItem

  • Microsoft.SqlServer.Management.Collector.CollectionItemKey

  • Microsoft.SqlServer.Management.Collector.CollectionItemCollection

  • Microsoft.SqlServer.Management.Collector.CollectionSet

  • Microsoft.SqlServer.Management.Collector.CollectionSet.CollectionModes

  • Microsoft.SqlServer.Management.Collector.CollectionSet.ExecutionStatus

  • Microsoft.SqlServer.Management.Collector.CollectionSet.Key

  • Microsoft.SqlServer.Management.Collector.CollectionSet.PropertyMetadataProvider

  • Microsoft.SqlServer.Management.Collector.CollectionSet.RuntimeExecutionMode

  • Microsoft.SqlServer.Management.Collector.CollectionSetCollection

  • Microsoft.SqlServer.Management.Collector.CollectionSetExtender

  • Microsoft.SqlServer.Management.Collector.CollectorConfigStore

  • Microsoft.SqlServer.Management.Collector.CollectorConfigStore.Key

  • Microsoft.SqlServer.Management.Collector.CollectorConfigStore.PropertyMetadataProvider

  • Microsoft.SqlServer.Management.Collector.CollectorException

데이터 수집기 네임스페이스에는 다음과 같은 종속 개체가 포함됩니다.

  • Microsoft.SqlServer.ConnectionInfo.dll

  • Microsoft.SqlServer.Management.Sdk.Sfc.dll

  • Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorCore

데이터 수집기 API를 사용하면 개체 모델을 통해 모든 구성 작업을 프로그래밍 방식으로 제어할 수 있습니다. 또한 API를 사용하는 데이터 수집 작업은 대부분 서버에 설치되는 저장 프로시저로 구현됩니다.