Submits an Alert, Event, or PerfData object to the Microsoft Operations Manager 2000 (MOM) data stream. After creating an Alert, Event, or PerfData object with the CreateAlert, CreateEvent, or CreatePerfData methods, you must call the Submit method for MOM to process the Alert, Event, or PerfData object.
ScriptContext.Submit(Alert Alert) ScriptContext.Submit(Event Event) ScriptContext.Submit(PerfData PerfData)
||Specifies the Alert object to submit to the MOM data stream.|
||Specifies the Event object to submit to the MOM data stream.|
||Specifies the PerfData object to submit to the MOM data stream.|
To submit an Alert object to the MOM data stream, enter:
Dim MYalert MYalert = ScriptContext.CreateAlert //Populate the alert MYalert.description = "This is a test alert description." ScriptContext.Submit(MYalert)
This example creates an Alert object with the CreateAlert method, populates the Alert object using the Alert object properties, and submits the Alert object to the MOM data stream with the Submit method.