Microsoft Operations Manager |
The Submitmethod submits an Alert, Event, or PerfDataobject to the MOM data stream.
[VBScript] ScriptContext.Submit(oObject
Object)
None
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.
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
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.