MetricAggregator
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:34
Constructors
섹션 제목: “Constructors”Constructor
섹션 제목: “Constructor”new MetricAggregator(
config):MetricAggregator
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:39
Parameters
섹션 제목: “Parameters”config
섹션 제목: “config”Returns
섹션 제목: “Returns”MetricAggregator
Methods
섹션 제목: “Methods”addMetric()
섹션 제목: “addMetric()”addMetric(
metric):Promise<void>
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:47
메트릭 추가 및 실시간 집계
Parameters
섹션 제목: “Parameters”metric
섹션 제목: “metric”Returns
섹션 제목: “Returns”Promise<void>
addMetrics()
섹션 제목: “addMetrics()”addMetrics(
metrics):Promise<void>
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:65
배치 메트릭 처리
Parameters
섹션 제목: “Parameters”metrics
섹션 제목: “metrics”Returns
섹션 제목: “Returns”Promise<void>
aggregateByRules()
섹션 제목: “aggregateByRules()”aggregateByRules(
metrics):Promise<AggregatedMetric[]>
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:74
규칙 기반 집계 실행
Parameters
섹션 제목: “Parameters”metrics
섹션 제목: “metrics”Returns
섹션 제목: “Returns”Promise<AggregatedMetric[]>
aggregateCustom()
섹션 제목: “aggregateCustom()”aggregateCustom(
metrics,groupBy,aggregationType,filters?):Promise<AggregatedMetric[]>
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:94
커스텀 집계 (동적 규칙)
Parameters
섹션 제목: “Parameters”metrics
섹션 제목: “metrics”groupBy
섹션 제목: “groupBy”string[]
aggregationType
섹션 제목: “aggregationType”"max" | "count" | "sum" | "avg" | "min" | "rate"
filters?
섹션 제목: “filters?”Record<string, any>
Returns
섹션 제목: “Returns”Promise<AggregatedMetric[]>
aggregateSlidingWindow()
섹션 제목: “aggregateSlidingWindow()”aggregateSlidingWindow(
metrics,windowSizeMs,stepMs,aggregationType):Promise<AggregatedMetric[]>
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:210
슬라이딩 윈도우 집계
Parameters
섹션 제목: “Parameters”metrics
섹션 제목: “metrics”windowSizeMs
섹션 제목: “windowSizeMs”number
stepMs
섹션 제목: “stepMs”number
aggregationType
섹션 제목: “aggregationType”"max" | "count" | "sum" | "avg" | "min"
Returns
섹션 제목: “Returns”Promise<AggregatedMetric[]>
calculatePercentiles()
섹션 제목: “calculatePercentiles()”calculatePercentiles(
metrics,percentiles,groupBy?):Promise<AggregatedMetric[]>
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:173
백분위수 계산
Parameters
섹션 제목: “Parameters”metrics
섹션 제목: “metrics”percentiles
섹션 제목: “percentiles”number[]
groupBy?
섹션 제목: “groupBy?”string[] = []
Returns
섹션 제목: “Returns”Promise<AggregatedMetric[]>
calculateRates()
섹션 제목: “calculateRates()”calculateRates(
numeratorMetrics,denominatorMetrics,groupBy?):Promise<AggregatedMetric[]>
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:127
비율 계산 (예: 전환율, 오류율)
Parameters
섹션 제목: “Parameters”numeratorMetrics
섹션 제목: “numeratorMetrics”denominatorMetrics
섹션 제목: “denominatorMetrics”groupBy?
섹션 제목: “groupBy?”string[] = []
Returns
섹션 제목: “Returns”Promise<AggregatedMetric[]>
normalizeMetrics()
섹션 제목: “normalizeMetrics()”normalizeMetrics(
metrics,method):Promise<AggregatedMetric[]>
Defined in: packages/analytics/src/aggregators/metric.aggregator.ts:252
메트릭 정규화
Parameters
섹션 제목: “Parameters”metrics
섹션 제목: “metrics”method
섹션 제목: “method”"minmax" | "zscore" | "robust"
Returns
섹션 제목: “Returns”Promise<AggregatedMetric[]>