Skip to main content Link Search Menu Expand Document (external link)

MetricBoundaries overview

Added in v2.0.0


Table of contents


constructors

exponential

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

Signature

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

Added in v2.0.0

fromIterable

Signature

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

Added in v2.0.0

linear

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

Signature

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

Added in v2.0.0

models

MetricBoundaries (interface)

Signature

export interface MetricBoundaries extends Equal.Equal, Pipeable {
  readonly [MetricBoundariesTypeId]: MetricBoundariesTypeId
  readonly values: ReadonlyArray<number>
}

Added in v2.0.0

refinements

isMetricBoundaries

Signature

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

Added in v2.0.0

symbols

MetricBoundariesTypeId

Signature

export declare const MetricBoundariesTypeId: typeof MetricBoundariesTypeId

Added in v2.0.0

MetricBoundariesTypeId (type alias)

Signature

export type MetricBoundariesTypeId = typeof MetricBoundariesTypeId

Added in v2.0.0