Microsoft Operations Manager |
The PerfDataproperty gets the PerfDataobject that caused MOM to invoke the script.
[VBScript] ScriptContext.PerfData
Read/Write
Object
The following example shows how to access the PerfDataobject that caused MOM to invoke the script.
[VBScript]
Function GetPerfData()
Dim objPerfData
If (ScriptContext.IsPerfData()) then
Set objPerfData = ScriptContext.PerfData
Else
Set objPerfData = Nothing
End If
Set GetPerfData = objPerfData
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
ScriptContext Object, PerfData Object
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.