Skip to content

MetricBoundaries

7 exports Added in v2.0.0 Source

Constructors

exponential

Added in v2.0.0 Source

A helper method to create histogram bucket boundaries for a histogram with exponentially increasing values.

Signature

declare const exponential: (options: {
  readonly count: number;
  readonly factor: number;
  readonly start: number;
}) => MetricBoundaries;

fromIterable

Added in v2.0.0 Source

Signature

declare const fromIterable: (iterable: Iterable<number>) => MetricBoundaries;

linear

Added in v2.0.0 Source

A helper method to create histogram bucket boundaries for a histogram with linear increasing values.

Signature

declare const linear: (options: {
  readonly count: number;
  readonly start: number;
  readonly width: number;
}) => MetricBoundaries;

Models

MetricBoundaries interface

Added in v2.0.0 Source

Signature

interface MetricBoundaries extends Equal, Pipeable {
  readonly [MetricBoundariesTypeId]: typeof MetricBoundariesTypeId;
  readonly values: readonly Array<number>;
}

Refinements

Signature

declare const isMetricBoundaries: (u: unknown) => u is MetricBoundaries;

Symbols

Signature

declare const MetricBoundariesTypeId: unique symbol;

Signature

type MetricBoundariesTypeId = typeof MetricBoundariesTypeId;