Microsoft Operations Manager

SampleUTCTime Property

The SampleUTCTimeproperty gets the date and time that the performance data was collected.

[VBScript] PerfData.SampleUTCTime

Access

Read/Write

Return Value

Date

Remarks

The SampleUTCTimeproperty 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 create new performance data and set the SampleUTCTimeproperty.

[VBScript] 
Function MakePerfDataFromEvent()
	Dim objPerfData, objEvent

	Set objPerfData = ScriptContext.CreatePerfData()

	If (ScriptContext.IsEvent()) Then
		Set objEvent = ScriptContext.Event

		objPerfData.SourceDomain = objEvent.SourceDomain
		objPerfData.SourceComputer = objEvent.SourceComputer
		objPerfData.SampleUTCTime = objEvent.UTCTime
	Else
		Set objPerfData = Nothing
	End If

	Set objEvent = Nothing
 
	Set MakePerfDataFromEvent = objPerfData
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.