Interface QueueTimeMetrics

An object providing methods for accessing queue time metrics of the most recently received server responses if the server supports this feature.

interface QueueTimeMetrics {
    getAvg(): number;
    getLatest(): undefined | number;
    getValues(): [number, number][];
}

Methods

  • Returns the average queue time of the most recently received responses in seconds.

    Returns number

  • Returns the queue time of the most recently received response in seconds.

    Returns undefined | number

  • Returns a list of the most recently received queue time values as tuples of the timestamp of the response being processed in milliseconds and the queue time in seconds.

    Returns [number, number][]