Export (0) Print
Expand All

Data Collector Programming

The data collector uses an object model which is a managed code API.

The basis of every object model is a hierarchy of classes. It consists of a single root class that has various generations of child classes. Each child class can be a member of a collection or an individual class. The following illustration shows key elements of the data collector object model.

The Data Collector Object Model

The Microsoft.SqlServer.Management.Collector namespace contains the following types:

  • 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

The data collector namespace has the following dependencies:

  • Microsoft.SqlServer.ConnectionInfo.dll

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

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

The data collector API allows programmatic control of all configuration operations through the object model. In addition, many of the data collection operations that use the API are implemented as stored procedures that are installed on the server.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft