Microsoft.SystemCenter.SdkEventProvider

Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager

The Microsoft.SystemCenter.SdkEventProvider data source module type provides custom event data that has been inserted by means of the Operations Manager SDK. The module returns Microsoft.SystemCenter.Event.LinkedData data as output.

Usage

Use this module within a rule when you want to retrieve custom event data that has been inserted by means of the Operations Manager SDK. Custom event data insertion is commonly used within the context of Operation Manager Connectors. For information about Connectors, see Connecting to External Systems by Using Operations Manager Connectors. For information about how to insert custom event data with the SDK, see How to Insert Custom Event and Performance Data.

Type Definition

<DataSourceModuleType ID="Microsoft.SystemCenter.SdkEventProvider" Accessibility="Public" Batching="false">
  <Configuration />
  <ModuleImplementation Isolation="Any">
    <Composite>
      <MemberModules>
        <DataSource ID="SdkDataSourceInternal" TypeID="Microsoft.SystemCenter.InternalSdkEventProvider" />
        <ConditionDetection ID="Mapper" TypeID="Microsoft.SystemCenter.SdkEventMapper">
          <RuleId>$MPElement$</RuleId>
        </ConditionDetection>
      </MemberModules>
      <Composition>
        <Node ID="Mapper">
          <Node ID="SdkDataSourceInternal" />
        </Node>
      </Composition>
    </Composite>
  </ModuleImplementation>
  <OutputType>Microsoft.SystemCenter.Event.LinkedData</OutputType>
</DataSourceModuleType>

Parameters

The Microsoft.SystemCenter.SdkEventProvider module does not require any configuration parameters.

Composition

The Microsoft.SystemCenter.SdkEventProvider module is a composite module that contains the member modules described in the following table.

Workflow Run Order Module Type Usage

1

Microsoft.SystemCenter.InternalSdkEventProvider

Internal module.

2

Microsoft.SystemCenter.SdkEventMapper

Internal module.

Module Type Usage

Microsoft.SystemCenter.SdkPerformanceDataProvider

Provides custom performance data that has been inserted by means of the Operations Manager SDK.

External Module References

None.

Sample

The following XML sample illustrates how you can use the Microsoft.SystemCenter.SdkEventProvider module type from within a rule that writes the data to the database whenever a specified event occurs.



<Rule ID="Microsoft.Samples.Connectors.AlertOnEvent" Enabled="true" Target="SC!Microsoft.SystemCenter.RootManagementServer" ConfirmDelivery="false">
  <Category>Alert</Category>
  <DataSources>
    <DataSource TypeID="SCLibrary!Microsoft.SystemCenter.SdkEventProvider" ID="DataSource" />
  </DataSources>
  <ConditionDetection TypeID="System!System.ExpressionFilter" ID="ConditionDetection">
    <Expression>
      <SimpleExpression>
        <ValueExpression>
          <XPathQuery>EventNumber</XPathQuery>
        </ValueExpression>
        <Operator>Equal</Operator>
        <ValueExpression>
          <Value>1</Value>
        </ValueExpression>
      </SimpleExpression>
    </Expression>
  </ConditionDetection>
  <WriteActions>
    <WriteAction ID="WriteToDB" TypeID="SCLibrary!Microsoft.SystemCenter.CollectPerformanceData" />
  </WriteActions> 
</Rule>

The Microsoft.SystemCenter.SdkEventProvider module in the above sample rule would output something like the following:

<DataItem type="System.Event.Data " sourceHealthServiceId="{00000000-0000-0000-0000-000000000000}" time="2007-09-21T01:23:13.4237008Z"> 
   <EventOriginId>{ce92e6a2-ba17-4888-b7d3-c830fae73cbc}</EventOriginId> 
   <PublisherId>{baaf8dbb-9ab3-9b73-3982-b04ea88cc46f}</PublisherId> 
   <PublisherName>Contoso</PublisherName> 
   <Channel /> 
   <LoggingComputer /> 
   <EventNumber>1</EventNumber> 
   <EventCategory>0</EventCategory> 
   <EventLevel>0</EventLevel> 
   <UserName>CONTOSO\Administrator</UserName> 
   <Params /> 
   <EventData></EventData> 
   <ManagedEntityId>{6c974804-c14c-9992-4738-01f40d767860}</ManagedEntityId> 
   <RuleId>{00000000-0000-0000-0000-000000000000}</RuleId> 
</DataItem>

Information

   

Module Type

DataSourceModuleType

Input Type

None

Output Type

Microsoft.SystemCenter.Event.LinkedData

Implementation

Composite

Library

Microsoft.Windows.Library