A custom distribution metric.

Constructors

Properties

#inner: InternalCustomDistributionMetricType

Methods

  • Accumulates the provided signed samples in the metric.

    Notes

    Discards any negative value in samples and report an ErrorType.InvalidValue for each of them.

    Parameters

    • samples: number[]

      The vector holding the samples to be recorded by the metric.

    Returns void

  • Test-only API

    Returns the number of errors recorded for the given metric.

    Parameters

    • errorType: string

      The type of the error recorded.

    • ping: string = ...

      Represents the name of the ping to retrieve the metric for. Defaults to the first value in sendInPings.

    Returns number

    The number of errors recorded for the metric.

Generated using TypeDoc