Microsoft Operations Manager

Value Property

The Valueproperty gets the numeric value of the performance data.

[VBScript] PerfData.Value

Access

Read/Write

Return Value

Double

Remarks

The Valueproperty is read-only when used with performance data provided to the script by MOM. The property is read/write when used with new performance data created with the ScriptContext.CreatePerfDatamethod.

Examples

The following example shows how to check the performance data value to see if it is within a specified range.

[VBScript] 
Function IsPerfDataWithinRange(objPerfData, dblMinValue,
dblMaxValue)
	Dim blnIsInRange
	Dim dblValue

	blnIsInRange = False

	dblValue = objPerfData.Value

	If ((dblValue >= dblMinValue) And (dblValue <=
dblMaxValue)) Then
		blnIsInRange =  True
	End If

	IsPerfDataWithinRange = blnIsInRange
End Function

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

PerfData Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.