Microsoft Operations Manager |
The ScriptContextobject gets the MOM scripting objects. Use the ScriptContextobject to access and manipulate MOM alerts, events, performance data, and variable sets. The ScriptContextobject is automatically instantiated by the MOM scripting environment. The ScriptContextobject can be considered the root object for MOM scripts. The ScriptContextobject is capable of creating all of the other product objects by using methods, such as ScriptContext.CreateAlert, or through the return value of properties, such as the ScriptContext.Alertproperty.
Name | Description |
---|---|
Generates a new Alertobject. |
|
Generates a new Eventobject. |
|
Generates a new PerfDataobject. |
|
Gets the ScriptStateobject. |
|
Determines whether the object provided to the script by MOM is an Alertobject. |
|
Determines whether the object provided to the script by MOM is an Eventobject. |
|
Determines whether the object provided to the script by MOM is a PerfDataobject. |
|
Submits an Alert, Event, or PerfDataobject to the MOM data stream. |
Name | Description |
---|---|
Gets the Alertobject that caused MOM to invoke the script. |
|
Gets the Eventobject that caused MOM to invoke the script. |
|
Gets a VarSetobject that contains the parameters sent from MOM when the script was invoked. |
|
Gets the PerfDatadata object that caused MOM to invoke the script. |
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.