IBM Tivoli Software IBM Tivoli Software

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


Thresholds

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

Method DefineThreshold

Syntax
Object.DefineThreshold(ThName As String, value As Double)
Parameters
ThName
The name of a new threshold.
value
The threshold default value.
Description
Defines a new threshold.
Remarks
This method is called inside the <<THRESHOLDS_INFO>>...<<\THRESHOLDS_INFO>> tags after you have defined a threshold in the Thresholds window.
Error codes

S_OK
TMWSERVICE_E_THRESHOLD_NAME_NOT_VALID

Example

Table 22. Advanced Object Method threshold examples
Visual Basic example:

Svc.DefineThreshold "NewThreshold1", 1.0
JavaScript example:

Svc.DefineThreshold("NewThreshold1", 1.0);

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