SSRS 2016: 報表數

Microsoft.SQLServer.2016.ReportingServices.PerformanceRule.DeploymentWatcher.NumberOfReports (Rule)

此規則會收集部署至 SSRS 部署的報表數。此規則會查詢 SSRS 類別目錄資料庫,從而取得資訊。

Knowledge Base article:

摘要

此規則會收集部署至 SSRS 部署的報表數。此規則會查詢 SSRS 類別目錄資料庫,從而取得資訊。

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用工作流程

間隔 (秒)

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

900

同步處理時間

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

 

資料庫連線的逾時

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

200

逾時 (秒)

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

300

Element properties:

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

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2016.ReportingServices.DataSource.TSQLCountersReportingServiceCustom Microsoft.SQLServer.MonitoringAccount
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.2016.ReportingServices.PerformanceRule.DeploymentWatcher.NumberOfReports" Enabled="true" Target="SQLRS!Microsoft.SQLServer.2016.ReportingServices.DeploymentWatcher" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2016.ReportingServices.DataSource.TSQLCountersReportingServiceCustom" RunAs="GPMP!Microsoft.SQLServer.MonitoringAccount">
<DatabaseServerName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2016.ReportingServices.DeploymentWatcher"]/ServerFQDN$</DatabaseServerName>
<DatabaseInstanceName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2016.ReportingServices.DeploymentWatcher"]/DBInstanceName$</DatabaseInstanceName>
<DBConnectionString/>
<UseDBConnectionString>false</UseDBConnectionString>
<DatabaseName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2016.ReportingServices.DeploymentWatcher"]/DBName$</DatabaseName>
<ServerName/>
<InstanceName/>
<TSQLCounterClassName>CountableStatistics</TSQLCounterClassName>
<TSQLCounterPropertyName>NumberOfReports</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>Number of reports</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='NumberOfReports']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>