Microsoft Operations Manager

Submit Method

The Submitmethod submits an Alert, Event, or PerfDataobject to the MOM data stream.

[VBScript] ScriptContext.Submit(oObject
Object)

Parameters

oObject
Specifies the object to submit to the MOM data stream. It should be an Alert, Event, or PerfDataobject.

Return Value

None

Remarks

After creating an Alert, Event, or PerfDataobject with the CreateAlert, CreateEvent, or CreatePerfDatamethod, you must call the Submitmethod for MOM to process the Alert, Event, or PerfDataobject.

Examples

The following example shows how to submit an Alertobject to the MOM data stream.

[VBScript] 
Function SubmitObject(objCreatedObject)
	Dim strObjectType

	strObjectType = TypeName(objCreatedObject)

	If ((strObjectType = "IEEMScriptAlert") Or _
		(strObjectType = "IEEMScriptEvent") Or _
		(strObjectType = "IEEMScriptPerfData")) Then
		ScriptContext.Submit(objCreatedObject)
	Else
		strObjectType = "Error, unknown object type: " &
strObjectType
	End If

	SubmitObject = strObjectType
End Function

Requirements

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

See Also

ScriptContext Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.