DataType
Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007
Represents a data type definition in a management pack.
Schema Hierarchy
ManagementPack
TypeDefinitions
DataTypes
Syntax
<DataType ID=”Company.Product.DataTypeID” Comment=”Comment” Accesibility=”Public/Internal” Base=”BaseDataTypeID”>
<Implementation>…</Implementation>
</DataType>
Attributes and Elements
The following sections describe attributes, child elements, and parent element of the DataType element.
Attributes
Attribute | Description |
---|---|
ID |
Required attribute. Represents the identity of the element. To learn how to identify your element in a management pack, see Element Identity and Namespace Conventions. |
Comment |
Optional attribute. Represents commentary by the management pack author. |
Accessibility |
Required attribute. Defines the visibility of the data type. |
Base |
Required attribute. Contains the ID of the data type from which the data type inherits. |
Accessibility Attribute Values
Value | Description |
---|---|
Public |
Indicates that external management packs can reference this data type. |
Internal |
Indicates that external management packs cannot reference this data type. |
Child Elements
Element | Description |
---|---|
Contains class or type and assembly information of the data type object implementation. |
Parent Elements
Element | Description |
---|---|
Contains data type definitions in a management pack. |
Remarks
A management pack DataType element references a data structure that is passed between modules in a workflow.
Note
Custom data type creation is not supported in Operations Manager 2007 R2.
Example
The following snippet shows how a data type, written in native code, is defined within the System.Performance management pack.
<DataType ID="System.Performance.SignatureEntry" Base="System!System.BaseData" Accessibility="Public">
<Implementation>
<ClassID>AEB2011B-7AD5-4A03-910F-312228EAE0F7</ClassID>
</Implementation>
</DataType>
The following is a snippet that shows a data type has been written in managed code. The data type is defined in the Microsoft.SystemCenter.Library management pack.
<DataType ID="Microsoft.SystemCenter.DataItemAlertSubscription" Comment="alert change data item type" Accessibility="Public" Base="System!System.BaseData">
<Implementation>
<Assembly>Microsoft.Mom.AlertSubscriptionDataSourceModule, Culture="", PublicKeyToken="31bf3856ad364e35", Version="6.0.4900.0"</Assembly>
<Type>Microsoft.EnterpriseManagement.Mom.
AlertSubscriptionModule.DataItemAlertSubscription</Type>
</Implementation>
</DataType>
This final snippet shows a data type has been written in both native and managed code. The data type is defined in the System.Performance management pack.
<DataType ID="System.Performance.SignatureData" Base="System!System.BaseData" Accessibility="Public">
<Implementation>
<Assembly>Microsoft.Mom.Modules.DataTypes, Culture="", PublicKeyToken="31bf3856ad364e35", Version="6.0.4900.0"</Assembly>
<Type>Microsoft.EnterpriseManagement.Mom.
Modules.DataItems.Baselining.MOMSignatureDataItem</Type>
<ClassID>5B44DF33-D67D-4500-85AE-7AE29CA11985</ClassID>
</Implementation>
</DataType>