Alert Object

Use the Alert object to manipulate alerts provided by MOM through the ScriptContext.Alert property and alerts created by the script with the ScriptContext.CreateAlert method.

Methods

Name Description

AddHistory

Appends an entry to the alert's history.

GetCustomField

Retrieves the value of a user-defined custom field of an alert.

SetCustomField

Sets the value of a user-defined custom field of an alert.

Properties

Name Description

AlertLevel

Gets or sets the severity of the alert.

AlertSource

Gets or sets the source of the alert.

Component

Gets or sets the type of service component that the alert is associated with.

ComponentInstance

Gets or sets the service component instance that the alert is associated with.

Computer

Gets or sets the name of the computer that raised the alert.

ComputerDomain

Gets or sets the domain name of the computer that raised the alert.

Description

Gets or sets the description of the alert.

ID

Gets the globally unique identifier (GUID) of the alert.

Name

Gets or sets the name of the rule that raised the alert.

Owner

Gets or sets the name of the alert owner.

ProblemState

Indicates whether the condition that originally raised the alert is still in the same state.

ResolutionState

Gets or sets the resolution state of the alert.

ServerRole

Gets or sets the service that the alert is associated with.

ServerRoleInstance

Gets or sets the specific service instance that the alert is associated with.

UTCTimeOfFirstEvent

Gets the date and time at which the first event that raised an alert occurred.

UTCTimeOfLastEvent

Gets the date and time at which the last event that raised an alert occurred.

Requirements

Platforms: Requires Windows 2000 or later

Version: Requires MOM 2000  or later

See Also

ScriptContext.CreateAlert Method | ScriptContext.Alert Property