Microsoft Operations Manager

Owner Property

The Ownerproperty gets the name of the alert owner. The owner can be someone responsible for tracking and resolving the alert.

[VBScript] Alert.Owner

Access

Read/Write

Return Value

String

Examples

The following example shows how to create a new alert and set the Ownerproperty to "[unassigned]".

[VBScript] 
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
	Else
		Set objCreatedAlert = Nothing
	End If

	Set objAlert = Nothing

	Set CreateNewAlert = objCreatedAlert
End Function

Requirements

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 momsdk@microsoft.com.