UTCTimeOfLastEvent Property

Provides access to the date and time that the last event that raised an alert occurred. This property is most useful when used with consolidated alerts.

Syntax

ScriptContext.Alert.UTCTimeOfLastEvent
ScriptContext.CreateAlert.UTCTimeOfLastEvent

Access

Read Only When used with an alert provided to the script by the MOM product.
Read/Write When used with a new alert created with the ScriptContext.CreateAlert Method.

Return Type

Date.

Example

To create a new alert and set the UTCTimeOfLastEvent property, enter:


Dim MYalert
Dim MYevent
set MYalert = ScriptContext.CreateAlert
set MYevent = ScriptContext.Event
set MYalert.UTCTimeOfLastEvent = MYevent.Time

This example sets the UTCTimeOfLastEvent property based on the event that caused the MOM product to invoke the script. The UTCTimeOfFirstEvent property is set to the time that the event occurred.