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)
Alert
|
Specifies the Alert object to submit to the MOM data stream. |
Event
|
Specifies the Event object to submit to the MOM data stream. |
PerfData
|
Specifies the PerfData object to submit to the MOM data stream. |
None.
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.