Type alias QueueTimeMetrics

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

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

Type declaration

  • getAvg: (() => number)

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

      • (): number
      • Returns number

  • getLatest: (() => number | undefined)

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

      • (): number | undefined
      • Returns number | undefined

  • getValues: (() => [number, 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.

      • (): [number, number][]
      • Returns [number, number][]