Provides access to the name of the processing rule that raised an alert.
ScriptContext.Alert.Name ScriptContext.CreateAlert.Name
Read Only | When used with an alert provided to the script by the Microsoft Operations Manager 2000 (MOM) product. |
Read/Write | When used with a new alert created with the ScriptContext.CreateAlert Method. |
String.
To create a new alert and set the Name property, enter:
Dim MYcreatedalert Dim MYalert set MYcreatedalert = ScriptContext.CreateAlert set MYalert = ScriptContext.Alert set MYcreatedalert.Name = MYalert.Name
This example sets the Name property based on the alert that caused the MOM product to invoke the script. The Name property is set to the name of the processing rule that raised the alert.