@xtandard/links/analytics/kv
The default analytics sink: time-bucket rollups in the links storage itself
(zero extra infrastructure). createLinksCore uses it when no analytics is
passed; import it to tune retention.
import { … } from "@xtandard/links/analytics/kv";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createKvAnalytics |
Create the KV rollup sink over a links storage. |
Classes
Section titled “Classes”| Name | Summary |
|---|---|
UnsupportedQueryError |
Thrown for queries the KV rollups cannot answer (see module docs). |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
KvAnalytics |
The KV sink, with a retention sweep. |
KvAnalyticsOptions |
Options for createKvAnalytics. |
RollupBucket |
A stored rollup bucket. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
Packed |
Compact metrics tuple: clicks, botClicks, leads, sales, saleAmount. |