監視代理程式作業的持續時間。
請注意,所有版本的 SQL Server Express 都不支援 SQL Server Agent Windows 服務; 所以沒有探索到任何適當的物件。
SQL 2014 Agent Job Duration 監視器。監視代理程式工作持續期間。這個監視器會在最後的工作執行花費時間超過「重大」臨界值時,將狀態變更為重大狀態。如果工作的持續期間在「警告」和「重大」臨界值之間,則監視器會將其狀態變更為警告。
名稱 | 描述 | 預設值 |
重大臨界值 (分鐘) | 若此值超過這個臨界值,此監視器會將狀態變更為重大。若在這個臨界值與警告臨界值 (含) 之間,此監視器會是警告狀態。 | 120 |
已啟用 | 啟用或停用該工作流程。 | 是 |
產生警示 | 定義工作流程是否會產生警示。 | 否 |
間隔 (秒) | 執行工作流程的週期性時間間隔 (秒)。 | 600 |
同步處理時間 | 使用 24 小時制指定的同步處理時間。將會忽略。 |
|
逾時 (秒) | 指定允許工作流程在關閉且標示為失敗之前執行的時間。 | 300 |
警告臨界值 (分鐘) | 警告臨界值。超出此臨界值會導致監視器變更為至少是警告狀態。 | 60 |
Target | Microsoft.SQLServer.2014.AgentJob |
Parent Monitor | System.Health.PerformanceState |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Alert Auto Resolve | True |
Monitor Type | Microsoft.SQLServer.2014.AgentLongRunningJobsProviderPerJob |
Remotable | True |
Accessibility | Public |
RunAs | Default |
<UnitMonitor ID="Microsoft.SQLServer.2014.AgentJob.JobDuration" Accessibility="Public" Enabled="true" Target="SQL2014Core!Microsoft.SQLServer.2014.AgentJob" ParentMonitorID="SystemHealth!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2014.AgentLongRunningJobsProviderPerJob" ConfirmDelivery="false">
<Category>PerformanceCollection</Category>
<OperationalStates>
<OperationalState ID="UnderThreshold1" MonitorTypeStateID="UnderThreshold1" HealthState="Success"/>
<OperationalState ID="OverThreshold1UnderThreshold2" MonitorTypeStateID="OverThreshold1UnderThreshold2" HealthState="Warning"/>
<OperationalState ID="OverThreshold2" MonitorTypeStateID="OverThreshold2" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>600</IntervalSeconds>
<SyncTime/>
<ConnectionString>$Target/Host/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.DBEngine"]/ConnectionString$</ConnectionString>
<JobID>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.AgentJob"]/JobID$</JobID>
<Threshold1>60</Threshold1>
<Threshold2>120</Threshold2>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>