AlertLevel Property

Provides access to the severity of the alert, such as 0 or 51. Severity numbers are mapped to meaningful text, such as Service Unavailable or Success, in the MOM Administrator Console or the Web Console.

Syntax

ScriptContext.Alert.AlertLevel
ScriptContext.CreateAlert.AlertLevel

Access

Read/Write.

Return Type

Long.

Example

To create a new alert and set the Severity property to 51, enter:

Dim MYalert
set MYalert = ScriptContext.CreateAlert
set MYalert.AlertLevel = 51