Gets an event parameter.
ScriptContext.Event.EventParameter(Parameter Long) ScriptContext.CreateEvent.EventParameter(Parameter Long)
Parameter
|
Specifies the event parameter to get. |
String.
To get the second event parameter for the event provided to the script from Microsoft Operations Manager, enter:
Dim MYevent Set Myevent = ScriptContext.Event Dim MYalert Set MYalert = ScriptContext.CreateAlert Myalert.Description = Myevent.EventParameter(2)
This example sets the alert description to the second parameter of the event.