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 GetThreshold

Syntax
Object.GetThreshold(ThName As String) As Double
Parameters
ThName
The name of the threshold.
Description
Returns the value of the threshold named ThName.
Error codes

S_OK
TMWSERVICE_E_THRESHOLD_NAME_NOT_DEFINED

Example

Table 15. Basic Object Method threshold examples
Visual Basic example:

'<<THRESHOLDS_INFO>>
Svc.DefineThreshold "NewThreshold1", 3.0
'<<\THRESHOLDS_INFO>>
....
Dim value As Double
value = Svc.GetThreshold("NewThreshold1")

JavaScript example:

//<<THRESHOLDS_INFO>>
Svc.DefineThreshold("NewThreshold1", 3.0);
//<<\THRESHOLDS_INFO>>
....
var value;
value = Svc.GetThreshold("NewThreshold1");


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