SCUtils.APC.UPS.Monitor.Type.BatteryRunTime (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityInternal
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS1 DataSource SCUtils.APC.UPS.BatteryRunTime.DSMT Default
ThresholdNotOK ConditionDetection System.ExpressionFilter Default
ThresholdOK ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelector
IntervalSecondsint$Config/IntervalSeconds$
Thresholddouble$Config/Threshold$

Source Code:

<UnitMonitorType ID="SCUtils.APC.UPS.Monitor.Type.BatteryRunTime" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="StatusOK" NoDetection="false"/>
<MonitorTypeState ID="StatusNotOK" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IPAddress" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="CommunityString" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="SnmpVersion" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="OID" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Threshold" type="xsd:double"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="Threshold" Selector="$Config/Threshold$" ParameterType="double"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS1" TypeID="SCUtils.APC.UPS.BatteryRunTime.DSMT">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<IPAddress>$Config/IPAddress$</IPAddress>
<CommunityString>$Config/CommunityString$</CommunityString>
<SnmpVersion>$Config/SnmpVersion$</SnmpVersion>
<OID>$Config/OID$</OID>
</DataSource>
<ConditionDetection ID="ThresholdOK" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/Property[@Name='Quotient']</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/Threshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="ThresholdNotOK" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/Property[@Name='Quotient']</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/Threshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="StatusOK">
<Node ID="ThresholdOK">
<Node ID="DS1"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="StatusNotOK">
<Node ID="ThresholdNotOK">
<Node ID="DS1"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>