Share via


Configuration (ConditionDetectionModuleType)

Applies To: System Center Service Manager 2010

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Represents the parameters for a monitor or module type definition in the XSD schema.

Schema Hierarchy

ManagementPack
  TypeDefinitions
    ModuleTypes
      ConditionDetectionModuleType
        ModuleImplementation (ConditionDetectionModuleType)
          Configuration

Syntax

<Configuration>   <IncludeSchemaTypes>…</IncludeSchemaTypes>   <xsd:element name="ElementName" type="xsd:sometype" />
</Configuration>

Attributes and Elements

The following sections describe attributes, child elements, and the parent elements of the Configuration element.

Attributes

None.

Child Elements

Element Description

IncludeSchemaTypes (ConditionDetectionModuleType)

Optional element. Contains references to internal or external complex SchemaType element types. These types are used as parameter data types in the Configuration section of ModuleTypes or MonitorTypes.

Parent Elements

Element Description

DataSourceModuleType

Represents a data source module type definition in a management pack.

ConditionDetectionModuleType

Represents a condition detection module type definition in a management pack.

WriteActionModuleType

Represents a write action module type definition in a management pack.

Text Value

The Configuration element describes the XSD schema for the parameters of module or monitor type definition elements. Each implementation of the defined module or monitor type must supply the correct configuration parameters in accordance with this XSD schema. For more information about XML schemas, see Understanding XML Schema.

Example

The following example illustrates the Configuration section of the System.Discovery.RelationshipSnapshotDataMapper condition detection module type as defined in the System.Library management pack. For the full definition of the condition detection module type, see ConditionDetectionModuleType.

In this example, the configuration section references a data type, SettingsType, that is defined in the schema type definition called System.Discovery.MapperSchema. For more information about schema types, see SchemaTypes or SchemaType.

  
<Configuration>
  <IncludeSchemaTypes>
    <SchemaType>System.Discovery.MapperSchema</SchemaType>
  </IncludeSchemaTypes>
  <xsd:element name="RelationshipId" type="xsd:string"/>
  <xsd:element name="SourceTypeId" minOccurs="0" maxOccurs="1" type="xsd:string"/>
  <xsd:element name="TargetTypeId" minOccurs="0" maxOccurs="1" type="xsd:string"/>
  <xsd:element name="SourceRoleSettings" type="SettingsType"/>
  <xsd:element name="TargetRoleSettings" type="SettingsType"/>
  <xsd:element name="InstanceSettings" minOccurs="0" maxOccurs="1" type="SettingsType"/>
</Configuration>

The following example illustrates how an implementation of the System.Discovery.RelationshipSnapshotDataMapper condition detection module type would supply the correct configuration parameter values. In this particular sample, the $Config expression is used because this condition detection module is part of a composite module. $Config/RelationshipId is an expression that refers to the RelationshipId parameter declared in its containing data source module’s Configuration section. For more information on the $Config variable notation, see $Config.

  
<DataSourceModuleType ID="Microsoft.Windows.WmiProviderWithRelationshipSnapshotDataMapper" Accessibility="Public">
  <Configuration>
    <IncludeSchemaTypes>
      <SchemaType>System!System.Discovery.MapperSchema</SchemaType>
    </IncludeSchemaTypes>
    <xsd:element name="NameSpace" type="xsd:string" />
    <xsd:element name="Query" type="xsd:string" />
    <xsd:element name="Frequency" type="xsd:unsignedInt" />
    <xsd:element name="RelationshipId" type="xsd:string" />
    <xsd:element name="SourceTypeId" minOccurs="0" maxOccurs="1" type="xsd:string" />
    <xsd:element name="TargetTypeId" minOccurs="0" maxOccurs="1" type="xsd:string" />
    <xsd:element name="SourceRoleSettings" type="SettingsType" />
    <xsd:element name="TargetRoleSettings" type="SettingsType" />
    <xsd:element name="InstanceSettings" minOccurs="0" maxOccurs="1" type="SettingsType" />
  </Configuration>
  <OverrideableParameters>
    <OverrideableParameter ID="Frequency" Selector="$Config/Frequency$" ParameterType="int" />
  </OverrideableParameters>
  <ModuleImplementation>
    <Composite>
      <MemberModules>
        <DataSource TypeID="System!System.Discovery.Scheduler" ID="Scheduler">
          <Scheduler>
            <SimpleReccuringSchedule>
              <Interval Unit="Seconds">$Config/Frequency$</Interval>
            </SimpleReccuringSchedule>
            <ExcludeDates />
          </Scheduler>
        </DataSource>
        <ProbeAction TypeID="Microsoft.Windows.WmiProbe" ID="Probe">
          <NameSpace>$Config/NameSpace$</NameSpace>
          <Query>$Config/Query$</Query>
        </ProbeAction>
        <ConditionDetection ID="Mapper" TypeID="System!System.Discovery.RelationshipSnapshotDataMapper">
          <RelationshipId>$Config/RelationshipId$</RelationshipId>
          <SourceTypeId>$Config/SourceTypeId$</SourceTypeId>
          <TargetTypeId>$Config/TargetTypeId$</TargetTypeId>
          <SourceRoleSettings>$Config/SourceRoleSettings$</SourceRoleSettings>
          <TargetRoleSettings>$Config/TargetRoleSettings$</TargetRoleSettings>
          <InstanceSettings>$Config/InstanceSettings$</InstanceSettings>
        </ConditionDetection>
      </MemberModules>
      <Composition>
        <Node ID="Mapper">
          <Node ID="Probe">
            <Node ID="Scheduler" />
          </Node>
        </Node>
      </Composition>
    </Composite>
  </ModuleImplementation>
  <OutputType>System!System.Discovery.Data</OutputType>
</DataSourceModuleType>

See Also

Reference

ConditionDetectionModuleType
DataSourceModuleType
WriteActionModuleType
SchemaType

Other Resources

Understanding XML Schema