9.50.5 Latency Statistics Related APL Functions
If the time arguments (startTime, stopTime) are not specified, the current time according to the local JVM will be used.
LatencyStart
Starts a latency measurement and (unless it already exists) creates its associated histogram.
any latencyStart ( string key1, string key2 [,long startTime] //Optional );
Parameter
Parameter | Description |
---|---|
| Primary measurement identifier. This denotes the end-points between which to measure the latency. It is an arbitrary string such as “CCR_CCA” (which could indicate that the latency between reception of a CCR and response of CCA is measured). |
| Traffic case discriminator. Arbitrary string to further classify the histogram. Key2 combined with key1 identifies a unique set of buckets that can be added together to a latency histogram. This key could be constructed from usage data in the request for example source, event type, etc. A null value indicates no further classification. |
| The time when the latency should begin being measured. If the |
Returns |
Note if the Latency Statistics agent is not present in a workflow the function will always return |
LatencyStop
The function stops a latency timer. When the latency value has been determined, it will increment the corresponding bucket in the appropriate latency histogram (identified by key1 and key2 of latencyStart).
long latencyStop ( any statID, [long stopTime] //Optional );
Parameters
Parameter | Description |
---|---|
| A unique identifier returned from the |
| The time when the latency measurement is ended. |
Returns |
|
LatencyAdd
The function is a latencyStart
and latencyStop
combined.
long latencyAdd ( string key1, string key2, long startTime [, long stopTime] //Optional );
Parameters
Parameter | Description |
---|---|
| Primary measurement identifier. |
| Traffic case discriminator. |
| The time when the latency should begin being measured. Note that this parameter is not optional. |
| The time when the latency measurement is ended. |
Returns |
|
IsLatencyEnabled
boolean isLatencyEnabled;
Parameters
Parameter | Description |
---|---|
Returns |
|