Microsoft Operations Manager

AlertLevel Property

The AlertLevelproperty gets the severity of the alert.

[VBScript] Alert.AlertLevel



Return Value



The following values are used to indicate the severity level for the alert.

Value Description
10 Success
20 Information
30 Warning
40 Error
50 Critical Error
60 Security Breach
70 Service Unavailable

Severity values are displayed using text descriptions, such as Service Unavailable or Success, in the MOM Administrator console or the Web console.


The following example shows how to create a new alert and set the Severityproperty to 50.

Function CreateNewAlert()
	Dim objCreatedAlert
	Dim objAlert

	Set objCreatedAlert = ScriptContext.CreateAlert()

	If (ScriptContext.IsAlert()) Then
		Set objAlert = ScriptContext.Alert

		objCreatedAlert.Name = objAlert.Name
		objCreatedAlert.AlertLevel = 50
		objCreatedAlert.Owner = "[unassigned]"
		objCreatedAlert.ResolutionState = 0  ' New
		Set objCreatedAlert = Nothing
	End If

	Set objAlert = Nothing

	Set CreateNewAlert = objCreatedAlert
End Function


Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

Alert Object

Did you find this information useful? Please send your suggestions and comments about the documentation to