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)
      • (): number
      • Returns the average queue time of the most recently received responses in seconds.

        Returns number

  • getLatest: (() => number | undefined)
      • (): number | undefined
      • Returns the queue time of the most recently received response in seconds.

        Returns number | undefined

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

        Returns [number, number][]

Generated using TypeDoc