Microsoft Operations Manager

Event Object

Use the Eventobject to manipulate events provided by MOM through the ScriptContext.Eventproperty and events created by the script with the ScriptContext.CreateEventmethod.

Methods

Name Description

EventParameter

Gets an event parameter.

SetEventParameter

Sets the event parameters of a newly created event object.

Properties

Name Description

Category

Gets the category of the event.

EventNumber

Gets the Windows NT and Windows 2000 event ID of the event.

EventSource

Gets the source of the event.

EventType

Gets the type of the event, such as Warning or Error.

LoggingComputer

Gets the name of the computer that logged the event.

LoggingDomain

Gets the logging domain of the event.

Message

Gets the description of the event.

MessageDLL

Gets the name of the message DLL that provides the event.

MessageDLLFileVersion

Gets the version number of the message DLL that provides the event.

SourceComputer

Gets the name of the computer that generated the event.

SourceDomain

Gets the source domain of the event.

UTCTime

Gets the date and time that the event occurred.

UserName

Gets the name of the Windows NT or Windows 2000 account that generated the event.

Requirements

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

See Also

ScriptContext.CreateEvent Method, ScriptContext.Event Property


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