@alphscan/metrics-types
v0.0.1
Published
Shared types and helpers for timeseries metrics: scales, data points, timeseries definitions, S3 path resolution. Used by indexer-metrics and by SDK to resolve timeseries page URLs without indexer code.
Readme
@alphscan/metrics-types
Shared types and helpers for timeseries metrics: scales, data points, timeseries definitions, S3 path resolution. Used by indexer-metrics and by SDK to resolve timeseries page URLs without indexer code.
SDK usage
Import getTimeseriesDefinition, getTimeseriesPagePath, getTimeseriesPageUrl and a MetricsConfig (bucket, baseUrl, timeseries list). Resolve page paths/URLs for a given seriesId, scale, bucket timestamp, and optional dimensions.
Scales
3m, 5m, 15m, 1h, 4h, 1d, 1w, 1m, 1y.
