ConditionDetection (Rule)
Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007
Represents an implementation of a condition detection module type definition.
Schema Hierarchy
ManagementPack
Monitoring
Rules
Rule
ConditionDetection (Rule)
Syntax
<ConditionDetection ID=”ModuleID” Comment=”Comment” TypeID=”ModuleTypeID”>
Custom Schema Defined Parameters
</ConditionDetection>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the ConditionDetection element.
Attributes
Attribute | Description |
---|---|
ID |
Required attribute. Represents the identity of the element. |
Comment |
Optional attribute. Represents commentary by the management pack author. |
TypeID |
Required attribute. Represents the ConditionDetection module type definition from which this ConditionDetection module inherits its configuration schema. |
ID Attribute Values
Value | Description |
---|---|
The format for the ID attribute should be |
The ID string must contain the following characteristics:
|
Child Elements
The child element of the ConditionDetection module is defined by the Configuration (ConditionDetectionModuleType) schema of its base type as referenced in the TypeID attribute.
Parent Elements
Element | Description |
---|---|
Contains all of the modules that are used in the linear workflow of a module type definition. |
Remarks
A condition detection module takes any number of input streams and outputs data based on some kind of filtering of data. Condition detection modules are also used to convert one data type to another data type in a workflow. Because a condition detection module can take multiple data input streams, it is also used to correlate or consolidate data within a workflow. The data types of its input and output data are defined in its InputTypes and OutputType (ProbeActionModuleType) elements, respectively.
A condition detection module type never alters system state. If you want your module to affect system state, you must instead use or implement a WriteAction (WriteActionModuleType) module.
In a rule workflow, a condition detection module is used to filter or map the data from a preceding DataSource (Rule) module so that the data can be in the appropriate format for writing.
Because a filtering condition detection module is not itself a data source, it always returns the same OutputType element of the preceding module in the workflow, whether that be a DataSource or a ProbeAction module.
A condition detection module’s base type must always be a descendant of a ConditionDetectionModuleType type.
Example
The following XML sample illustrates how a condition detection module can be used as an expression filter. The data source returns general mailbox statistics. However, this particular rule is interested only in writing performance data of the Average Mailbox MB counter to the database.
<Rule ID="Collect_Mailbox_Statistics.AverageMailboxMB.PerformanceCollection" Enabled="onStandardMonitoring" Target="Exch2003Core!Microsoft.Exchange.Databases" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="ScriptDS" TypeID="Collect_Mailbox_Statistics.DataSource">
<IntervalSeconds>86400</IntervalSeconds>
<TargetNetbiosComputer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</TargetNetbiosComputer>
<MaxEntries>200</MaxEntries>
<TimeoutSeconds>1800</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="FilterPerf" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">CounterName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Average Mailbox MB</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData" />
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" />
</WriteActions>
</Rule>