Alert Properties

Include Protected Members
Include Inherited Members

The Alert type exposes the following members.

Properties

  Name Description
Public property AlertType Gets the AlertType object value that specifies the type of alert.
Public property CategoryName Gets or sets the name of the category to which the alert belongs.
Public property CountResetDate Gets or sets the date on which to reset the alert occurrence count back to zero.
Public property DatabaseName Gets or sets the name of the database that the alert is monitoring.
Public property DelayBetweenResponses Gets or sets the delay between responses in seconds.
Public property EventDescriptionKeyword Gets or sets a word or phrase that must appear in the text of an event message that causes the alert to be raised.
Public property EventSource Gets the event source text from the application event log.
Protected property ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Inherited from SqlSmoObject.)
Public property HasNotification Gets the number of SQL Server Agent operators that are assigned to receive notification when the alert is fired.
Public property ID Gets the ID value that uniquely identifies SQL Server Agent.
Public property IncludeEventDescription Gets or sets the NotifyMethods object value that specifies the types of notification methods (e-mail, pager, or net send) that can contain alert error text.
Public property IsEnabled Gets or sets the Boolean property value that specifies whether the alert is enabled or not.
Protected property IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Inherited from SqlSmoObject.)
Public property JobID Gets or sets the ID value of the SQL Server Agent job that is run in response to the alert being raised.
Public property JobName Gets or sets the name of the SQL Server Agent job that is run in response to the alert being raised.
Public property LastOccurrenceDate Gets or sets the date on which the alert was last raised.
Public property LastResponseDate Gets or sets the date on which the alert last generated a response.
Public property MessageID Gets or sets the ID value of the Microsoft SQL Server message that causes the alert to be raised.
Public property Name Gets or sets the name of the object. (Inherited from NamedSmoObject.)
Public property NotificationMessage Gets or sets the user-supplied text appended to any notification sent in response to an alert being raised.
Protected property ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Inherited from SqlSmoObject.)
Public property OccurrenceCount Gets the number of times the alert has fired since the alert was enabled or since a specified date.
Public property Parent Gets or sets the JobServer object that is the parent of the Alert object.
Public property PerformanceCondition Gets or sets the performance condition text.
Public property Properties Gets a collection of Property objects that represent the object properties. (Inherited from SqlSmoObject.)
Protected property ScalarResult Gets the scalar result for the referenced object. (Inherited from SqlSmoObject.)
Public property Severity Gets or sets the error message severity level that causes the alert to be raised.
Public property State Gets the state of the referenced object. (Inherited from SmoObjectBase.)
Public property Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Inherited from SqlSmoObject.)
Public property UserData Gets or sets user-defined data associated with the referenced object. (Inherited from SmoObjectBase.)
Public property WmiEventNamespace Gets or sets the Windows Management Instrumentation (WMI) namespace for the event.
Public property WmiEventQuery Gets or sets the Windows Management Instrumentation (WMI) query for the event.

Top