MCPcopy Index your code
hub / github.com/Effect-TS/effect / constructor

Method constructor

packages/effect/src/internal/metric/keyType.ts:146–159  ·  view source on GitHub ↗
(
    readonly maxAge: Duration.Duration,
    readonly maxSize: number,
    readonly error: number,
    readonly quantiles: ReadonlyArray<number>
  )

Source from the content-addressed store, hash-verified

144 readonly [MetricKeyTypeTypeId] = metricKeyTypeVariance
145 readonly [SummaryKeyTypeTypeId]: MetricKeyType.SummaryKeyTypeTypeId = SummaryKeyTypeTypeId
146 constructor(
147 readonly maxAge: Duration.Duration,
148 readonly maxSize: number,
149 readonly error: number,
150 readonly quantiles: ReadonlyArray<number>
151 ) {
152 this._hash = pipe(
153 Hash.string(SummaryKeyTypeSymbolKey),
154 Hash.combine(Hash.hash(this.maxAge)),
155 Hash.combine(Hash.hash(this.maxSize)),
156 Hash.combine(Hash.hash(this.error)),
157 Hash.combine(Hash.array(this.quantiles))
158 )
159 }
160 readonly _hash: number;
161 [Hash.symbol](): number {
162 return this._hash

Callers

nothing calls this directly

Calls 3

arrayMethod · 0.80
pipeFunction · 0.70
combineMethod · 0.65

Tested by

no test coverage detected