SSRS 2012: 每分钟按需执行数

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

规则将为整个 SSRS 部署收集每分钟按需执行数。规则将查询 SSRS 目录数据库以获取相关信息。

Knowledge Base article:

摘要

规则将为整个 SSRS 部署收集每分钟按需执行数。规则将查询 SSRS 目录数据库以获取相关信息。

按需执行是指在您选择报告时会获取最新查询结果的报告执行。这些执行会记录到目录数据库的 ExecutionLogStorage 表格中。

可替代参数

名称

说明

默认值

已启用

Enables or disables the workflow

1

生成警报

The recurring interval of time in seconds in which to run the workflow.

间隔(秒)

运行工作流的重复间隔时间(秒)。

 

同步时间

The workflow will fail and register an event, if it cannot access the database during the specified period.

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 Microsoft.SQLServer.2012.ReportingServices.RunAsProfile.Monitoring
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Microsoft.SQLServer.2012.ReportingServices.RunAsProfile.Monitoring

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>
<DatabaseName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2012.ReportingServices.DeploymentWatcher"]/DBName$</DatabaseName>
<ServerName/>
<InstanceName/>
<TSQLCounterClassName>PerformanceStatistics</TSQLCounterClassName>
<TSQLCounterPropertyName>OnDemandExecutions</TSQLCounterPropertyName>
<TimeOut>300</TimeOut>
<IntervalSeconds>900</IntervalSeconds>
<DividerIfGreater>0</DividerIfGreater>
<Divider>1</Divider>
<SyncTime/>
</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" RunAs="SQLRS!Microsoft.SQLServer.2012.ReportingServices.RunAsProfile.Monitoring"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" RunAs="SQLRS!Microsoft.SQLServer.2012.ReportingServices.RunAsProfile.Monitoring"/>
</WriteActions>
</Rule>