ジョブ期間

Microsoft.SQLServer.2014.AgentJob.JobDuration (UnitMonitor)

エージェント ジョブ期間を監視します。

Knowledge Base article:

概要

SQL 2014 エージェント ジョブ期間モニター。 エージェント ジョブ期間を監視します。このモニターは、最後のジョブ実行が重大なしきい値よりも時間がかかっている場合、状態を重大な状態に変更します。ジョブの継続時間が警告のしきい値と重大なしきい値の間の場合は、状態を警告に変更します。

上書き可能なパラメーター

名前

説明

既定値

有効

 

はい

アラートを生成する

 

いいえ

間隔 (秒)

ワークフローを実行する定期的な実行間隔 (秒)。

600

同期時刻

24 時間形式で指定した同期時刻。省略可能です。

 

警告しきい値 (分)

警告しきい値。既定では、このしきい値を超えると、モニターが少なくとも警告状態に変わります。

60

重大しきい値 (分)

モニターは、値がこのしきい値を超えると状態を重大に変更します。このしきい値と警告しきい値 (両方のしきい値を含む) の間にあると、モニターは警告状態になります。

120

タイムアウト (秒)

ワークフローが終了して失敗とマークされるまでの、ワークフローの許容実行時間を指定します。

300

Element properties:

TargetMicrosoft.SQLServer.2014.AgentJob
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2014.AgentLongRunningJobsProviderPerJob
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<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>