Probe Action PropertyBagSieve3Properties

Fujitsu.PRIMEQUEST.ProbeAction.PropertyBagSieve3Properties (ProbeActionModuleType)

Probe Action Module Type - PropertyBagSieve3Properties

Element properties:

TypeProbeActionModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
InputTypeSystem.PropertyBagData
OutputTypeSystem.PropertyBagData

Member Modules:

ID Module Type TypeId RunAs 
Script ProbeAction Microsoft.Windows.PowerShellPropertyBagProbe Default
JustPass ConditionDetection System.ExpressionFilter Default

Source Code:

<ProbeActionModuleType ID="Fujitsu.PRIMEQUEST.ProbeAction.PropertyBagSieve3Properties" Accessibility="Public" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Key1" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Key2" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Key3" type="xsd:string"/>
</Configuration>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<ProbeAction ID="Script" TypeID="Windows!Microsoft.Windows.PowerShellPropertyBagProbe">
<ScriptName>pb-sieve-3.ps1</ScriptName>
<ScriptBody><Script>
param(
[string] $Key1,
[string] $Value1,
[string] $Key2,
[string] $Value2,
[string] $Key3,
[string] $Value3
)

$api = New-Object -comObject 'MOM.ScriptAPI'
$bag = $api.CreatePropertyBag()

if((![string]::IsNullOrEmpty($Key1)) -and ($Value1 -ne $null)) {
$bag.AddValue($Key1, $Value1)
}
if((![string]::IsNullOrEmpty($Key2)) -and ($Value2 -ne $null)) {
$bag.AddValue($Key2, $Value2)
}
if((![string]::IsNullOrEmpty($Key3)) -and ($Value3 -ne $null)) {
$bag.AddValue($Key3, $Value3)
}

$bag
</Script></ScriptBody>
<Parameters>
<Parameter>
<Name>Key1</Name>
<Value>$Config/Key1$</Value>
</Parameter>
<Parameter>
<Name>Value1</Name>
<Value>$Data/Property[@Name='$Config/Key1$']$</Value>
</Parameter>
<Parameter>
<Name>Key2</Name>
<Value>$Config/Key2$</Value>
</Parameter>
<Parameter>
<Name>Value2</Name>
<Value>$Data/Property[@Name='$Config/Key2$']$</Value>
</Parameter>
<Parameter>
<Name>Key3</Name>
<Value>$Config/Key3$</Value>
</Parameter>
<Parameter>
<Name>Value3</Name>
<Value>$Data/Property[@Name='$Config/Key3$']$</Value>
</Parameter>
</Parameters>
<TimeoutSeconds>600</TimeoutSeconds>
</ProbeAction>
<ConditionDetection ID="JustPass" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<Value>x</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>x</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<Composition>
<Node ID="JustPass">
<!-- Events 5500 appear constantly when this element is not present. -->
<Node ID="Script"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
<InputType>System!System.PropertyBagData</InputType>
</ProbeActionModuleType>