SQL 2008 RS: CPU Usage (\%) monitor type

Microsoft.SQLServer.2008.ReportingServices.MonitorType.Instance.CpuUsageByInstance (UnitMonitorType)

CPU Usage (\%) monitor type for SQL 2008 RS

Element properties:

RunAsMicrosoft.SQLServer.2008.ReportingServices.RunAsProfile.Monitoring
AccessibilityInternal
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2008.ReportingServices.DataSource.MappedInstancePerfomanceDataProvider Default
CSC ConditionDetection System.Performance.ConsecutiveSamplesCondition Default
ErrorCondition ConditionDetection System.ExpressionFilter Default
Mapper ConditionDetection System.Performance.DataGenericMapper Default
SuccessCondition ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
IntervalSecondsint$Config/IntervalSeconds$Interval (seconds)The recurring interval of time in seconds in which to run the workflow.
Thresholdint$Config/Threshold$ThresholdThe monitor alerts if the CPU utilization caused by the SSRS process is higher than the threshold.
NumSamplesint$Config/NumSamples$Number of samplesIndicates how many times a measured value should breach a threshold before the state is changed.
SyncTimestring$Config/SyncTime$Synchronization Time

Source Code:

<UnitMonitorType ID="Microsoft.SQLServer.2008.ReportingServices.MonitorType.Instance.CpuUsageByInstance" Accessibility="Internal" RunAs="SQLRS!Microsoft.SQLServer.2008.ReportingServices.RunAsProfile.Monitoring">
<MonitorTypeStates>
<MonitorTypeState ID="Success"/>
<MonitorTypeState ID="Error"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Threshold" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NumSamples" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SyncTime" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="Threshold" Selector="$Config/Threshold$" ParameterType="int"/>
<OverrideableParameter ID="NumSamples" Selector="$Config/NumSamples$" ParameterType="int"/>
<OverrideableParameter ID="SyncTime" Selector="$Config/SyncTime$" ParameterType="string"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2008.ReportingServices.DataSource.MappedInstancePerfomanceDataProvider">
<ServiceName>$Target/Property[Type='SQLRS!Microsoft.SQLServer.2008.ReportingServices.Instance']/ServiceName$</ServiceName>
<InstallPath>$Target/Property[Type='SQLRS!Microsoft.SQLServer.2008.ReportingServices.Instance']/InstallPath$</InstallPath>
<PerformanceCounterClassName>SystemDiagnosticsProcess</PerformanceCounterClassName>
<PerformanceCounterPropertyName>CpuUsage</PerformanceCounterPropertyName>
<DividerIfGreater>0</DividerIfGreater>
<Divider>1</Divider>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SyncTime/>
</DataSource>
<ConditionDetection ID="Mapper" TypeID="SystemPerf!System.Performance.DataGenericMapper">
<ObjectName>SQLSERVER</ObjectName>
<CounterName>CPU Usage</CounterName>
<InstanceName>$Target/Property[Type='SQLRS!Microsoft.SQLServer.2008.ReportingServices.Instance']/ServiceName$</InstanceName>
<Value>$Data/Property[@Name='CpuUsage']$</Value>
</ConditionDetection>
<ConditionDetection ID="CSC" TypeID="SystemPerf!System.Performance.ConsecutiveSamplesCondition">
<Threshold>$Config/Threshold$</Threshold>
<Direction>greaterequal</Direction>
</ConditionDetection>
<ConditionDetection ID="SuccessCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="ErrorCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Success">
<Node ID="SuccessCondition">
<Node ID="CSC">
<Node ID="Mapper">
<Node ID="DS"/>
</Node>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Error">
<Node ID="ErrorCondition">
<Node ID="CSC">
<Node ID="Mapper">
<Node ID="DS"/>
</Node>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>