System.PassThroughProbe
Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager
The System.PassThroughProbe probe action module type takes no input and returns System.BaseData data results.
Usage
This module is commonly used to provide input to nontrigger probe action modules. Probe modules that have their TriggerOnly property set to false require input, usually from a data source, to proceed. In the absence of a data source, the System.PassThroughProbe module provides that input in the form of empty System.BaseData output. This module is commonly used with on-demand monitor type workflows when a trigger-only probe module is not available, for example, when the user starts a task.
Type Definition
<ProbeActionModuleType ID="System.PassThroughProbe" Accessibility="Public" Batching="false" PassThrough="false">
<Configuration />
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<ProbeAction ID="PassThrough" TypeID="System.PassThroughProbe.Internal">
<Expression />
</ProbeAction>
</MemberModules>
<Composition>
<Node ID="PassThrough" />
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System.BaseData</OutputType>
<TriggerOnly>true</TriggerOnly>
</ProbeActionModuleType>
<ProbeActionModuleType ID="System.PassThroughProbe.Internal" Accessibility="Internal" Batching="false" PassThrough="false">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System.ExpressionEvaluatorSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="Expression" type="ExpressionType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
</Configuration>
<ModuleImplementation Isolation="Any">
<Native>
<ClassID>C6410789-C1BB-4AF1-B818-D01A5367781D</ClassID>
</Native>
</ModuleImplementation>
<OutputType>System.BaseData</OutputType>
<TriggerOnly>true</TriggerOnly>
</ProbeActionModuleType>
Parameters
The System.PassThroughProbe module supports no configuration parameters.
Composition
The System.PassThroughProbe module is a composite module that contains the member module that is described in the following table.
Workflow Run Order | Module Type | Usage |
---|---|---|
1 |
System.PassThroughProbeInternal |
Internal module, used only by System.PassThroughProbe. |
Sample
The following example shows a UnitMonitorType type that uses the System.PassThroughProbe module. The rule used in this UnitMonitorType contains a probe action module that runs a script. This probe requires input of the form System.BaseData. In the RegularDetection section of the MonitorType, that input is provided by a scheduler DataSource module. In the OnDemand section of the MonitorType, there is no DataSource module. The System.PassThroughProbe module is used to provide the input.
<UnitMonitorType ID="MPAuthoring.ScriptMP.MonitorType.FileInfo" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="UnderWarning" NoDetection="false" />
<MonitorTypeState ID="OverWarning" NoDetection="false" />
<MonitorTypeState ID="OverError" NoDetection="false" />
</MonitorTypeStates>
<Configuration>
<xsd:element minOccurs="1" name="FileName" type="xsd:string" />
<xsd:element minOccurs="1" name="IntervalSeconds" type="xsd:integer" />
<xsd:element minOccurs="0" name="SyncTime" type="xsd:string" />
<xsd:element minOccurs="1" name="WarningThreshold" type="xsd:integer" />
<xsd:element minOccurs="1" name="ErrorThreshold" type="xsd:integer" />
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />
<OverrideableParameter ID="SyncTime" Selector="$Config/SyncTime$" ParameterType="string" />
<OverrideableParameter ID="WarningThreshold" Selector="$Config/WarningThreshold$" ParameterType="int" />
<OverrideableParameter ID="ErrorThreshold" Selector="$Config/ErrorThreshold$" ParameterType="int" />
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DataSource" TypeID="MPAuthoring.ScriptMP.FileInfo">
<FileName>$Config/FileName$</FileName>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SyncTime>$Config/SyncTime$</SyncTime>
</DataSource>
<ProbeAction ID="Probe" TypeID="MPAuthoring.ScriptMP.ProbeAction.FileInfo">
<FileName>$Config/FileName$</FileName>
</ProbeAction>
<ProbeAction ID="PassThrough" TypeID="System!System.PassThroughProbe" />
<ConditionDetection ID="FilterUnderWarning" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='FileSize']</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Integer">$Config/WarningThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterOverWarning" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='FileSize']</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Integer">$Config/WarningThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='FileSize']</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Integer">$Config/ErrorThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterOverError" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='FileSize']</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Integer">$Config/ErrorThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="UnderWarning">
<Node ID="FilterUnderWarning">
<Node ID="DataSource" />
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="OverWarning">
<Node ID="FilterOverWarning">
<Node ID="DataSource" />
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="OverError">
<Node ID="FilterOverError">
<Node ID="DataSource" />
</Node>
</RegularDetection>
</RegularDetections>
<OnDemandDetections>
<OnDemandDetection MonitorTypeStateID="UnderWarning">
<Node ID="FilterUnderWarning">
<Node ID="Probe">
<Node ID="PassThrough" />
</Node>
</Node>
</OnDemandDetection>
<OnDemandDetection MonitorTypeStateID="OverWarning">
<Node ID="FilterOverWarning">
<Node ID="Probe">
<Node ID="PassThrough" />
</Node>
</Node>
</OnDemandDetection>
<OnDemandDetection MonitorTypeStateID="OverError">
<Node ID="FilterOverError">
<Node ID="Probe">
<Node ID="PassThrough" />
</Node>
</Node>
</OnDemandDetection>
</OnDemandDetections>
</MonitorImplementation>
</UnitMonitorType>
Information
Module Type |
|
Input Type |
None |
Output Type |
|
Implementation |
Composite |
Library |
System.Library |