작업 기간

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

에이전트 작업 기간을 모니터링합니다.
SQL Server 에이전트 Windows 서비스는 모든 버전의 SQL Server Express에서 지원되지 않습니다. 적절한 검색된 개체가 없습니다.

Knowledge Base article:

요약

SQL 2014 에이전트 작업 기간 모니터입니다. 에이전트 작업 기간을 모니터링합니다. 마지막 작업 실행이 위험 임계값보다 오래 걸리는 경우 모니터가 상태를 위험 상태로 변경합니다. 작업 기간이 경고 임계값 및 위험 임계값 사이에 있는 경우 모니터가 상태를 경고로 변경합니다.

재정의 가능한 매개 변수

이름

설명

기본값

위험 임계값(분)

값이 이 임계값을 초과하는 경우 모니터의 상태가 위험으로 변경됩니다. 이 임계값과 경고 임계값 사이(경계 포함)에서는 모니터가 경고 상태로 유지됩니다.

120

사용

워크플로를 사용하거나 사용하지 않도록 설정합니다.

알림 생성

워크플로가 알림을 생성하는지를 정의합니다.

아니요

간격(초)

워크플로를 실행하는 반복 시간 간격(초)입니다.

600

동기화 시간

24시간 형식으로 지정된 동기화 시간입니다. 생략될 수 있습니다.

 

제한 시간(초)

워크플로를 닫고 실패로 표시하기 전에 워크플로를 실행할 수 있는 시간을 지정합니다.

300

경고 임계값(분)

경고 임계값입니다. 이 임계값을 초과하면 모니터가 경고 상태로 변경됩니다.

60

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>