SSRS 2012: 每分鐘的隨選執行次數

Microsoft.SQLServer.2012.ReportingServices.PerformanceRule.DeploymentWatcher.OnDemandExecutions (Rule)

此規則會收集整個 SSRS 部署的每分鐘隨選執行次數。此規則會查詢 SSRS 類別目錄資料庫,以取得資訊。

Knowledge Base article:

摘要

此規則會收集整個 SSRS 部署的每分鐘隨選執行次數。此規則會查詢 SSRS 類別目錄資料庫,以取得資訊。

隨選執行即是報表執行,可取得所選報表當時的最新查詢結果。這些執行記錄會記錄到類別目錄資料庫的 ExecutionLogStorage 資料表中。

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用工作流程

間隔 (秒)

執行工作流程的週期性時間間隔 (秒)。

900

同步處理時間

使用 24 小時制指定的同步處理時間。將會忽略。

 

資料庫連線的逾時

若工作流程無法在指定的期限之內存取資料庫,將會失敗並登錄一則事件。

200

逾時 (秒)

指定允許工作流程在關閉且標示為失敗之前執行的時間。

300

Element properties:

TargetMicrosoft.SQLServer.2012.ReportingServices.DeploymentWatcher
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2012.ReportingServices.DataSource.TSQLCountersReportingServiceCustom Microsoft.SQLServer.2012.ReportingServices.RunAsProfile.Monitoring
Mapper ConditionDetection System.Performance.DataGenericMapper Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2012.ReportingServices.PerformanceRule.DeploymentWatcher.OnDemandExecutions" Enabled="true" Target="SQLRS!Microsoft.SQLServer.2012.ReportingServices.DeploymentWatcher" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2012.ReportingServices.DataSource.TSQLCountersReportingServiceCustom" RunAs="SQLRS!Microsoft.SQLServer.2012.ReportingServices.RunAsProfile.Monitoring">
<DatabaseServerName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2012.ReportingServices.DeploymentWatcher"]/ServerFQDN$</DatabaseServerName>
<DatabaseInstanceName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2012.ReportingServices.DeploymentWatcher"]/DBInstanceName$</DatabaseInstanceName>
<DBConnectionString>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2012.ReportingServices.DeploymentWatcher"]/DBConnectionString$</DBConnectionString>
<DatabaseName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2012.ReportingServices.DeploymentWatcher"]/DBName$</DatabaseName>
<ServerName/>
<InstanceName/>
<TSQLCounterClassName>PerformanceStatistics</TSQLCounterClassName>
<TSQLCounterPropertyName>OnDemandExecutions</TSQLCounterPropertyName>
<TimeOut>200</TimeOut>
<IntervalSeconds>900</IntervalSeconds>
<DividerIfGreater>0</DividerIfGreater>
<Divider>1</Divider>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="SystemPerf!System.Performance.DataGenericMapper">
<ObjectName>SQL RS Deployment Watcher</ObjectName>
<CounterName>On-demand executions/min</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='OnDemandExecutions']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>