다음을 통해 공유


Alert.PerformanceCondition 속성

Gets or sets the performance condition text.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property PerformanceCondition As String 
    Get 
    Set
‘사용 방법
Dim instance As Alert 
Dim value As String 

value = instance.PerformanceCondition

instance.PerformanceCondition = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string PerformanceCondition { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ PerformanceCondition {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PerformanceCondition : string with get, set
function get PerformanceCondition () : String 
function set PerformanceCondition (value : String)

속성 값

유형: System.String
A String value that specifies the performance condition.

주의

When setting the PerformanceCondition property, the value requires the following syntax:

ObjectName|CounterName|Instance|ComparisonOp|CompValue

Part

Description

ObjectName

Name of a monitored Microsoft SQL Server object

CounterName

Name of a counter exposed by the object

Instance

Name of an instance of the counter

ComparisonOp

One of the relational operators =, >, or <

CompValue

Numeric value compared

For example, to create an alert raised when the average wait time for an extent lock rises above 1 second (1,000 milliseconds), set the PerformanceCondition property using the string:

SQLServer:Locks|Average Wait Time (ms)|Extent|>|1000

Many SQL Server Performance Monitor counters do not define instance parameters. When an instance parameter is not applicable, indicate that no instance is selected using an empty Instance part in the value string, as in:

SQLServer:Access Methods|Page Splits/sec||>|50

SQL Server 에이전트에서 자동 관리 태스크 예약

참고 항목

참조

Alert 클래스

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스

관련 자료

관리 태스크 자동화(SQL Server 에이전트)

sp_add_alert(Transact-SQL)