IBM Tivoli Software IBM Tivoli Software

[ Bottom of Page | Previous Page | Next Page | Contents | Index ]


Events

The following methods help you to express functions for events configuration.

Method DefineEvent

Syntax
Object.DefineEvent(EventName As String,_ 
NumAttrs As String, StrAttrs As String)
Parameters
EventName
The name of a new event.
NumAttrs
Comma-separated values with the names of the NUMERIC attributes of the event.
StrAttrs
Comma-separated values with the names of the STRING attributes of the event.
Description
Defines a new Event.
Remarks
This method is called inside the <<EVENTS_INFO>>...<<\EVENTS_INFO>> tags after you have defined an event in the Events window.
Error codes

S_OK
TMWSERVICE_E_EVENT_REDEFINITION

Example

Table 24. Advanced Object Method event examples
Visual Basic example:

Svc.DefineEvent "MyEvent" , "numAttr1,numAttr2", "strAttr1,strAttr2"
JavaScript example:

Svc.DefineEvent("MyEvent" , "numAttr1,numAttr2", "strAttr1,strAttr2");

[ Top of Page | Previous Page | Next Page | Contents | Index ]