@xtandard/links/analytics/analytics-engine
Cloudflare Workers Analytics Engine sink: writeDataPoint through the
dataset binding, queries through the Analytics Engine SQL API with
_sample_interval weighting.
import { … } from "@xtandard/links/analytics/analytics-engine";Functions
Section titled “Functions”| Name | Summary |
|---|---|
analyticsEngineDialect |
The SQL dialect over the data point layout. |
createAnalyticsEngine |
Create a Workers Analytics Engine-backed AnalyticsSink. |
toDataPoint |
Map an event to its data point (see the module docs for the layout). |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
AnalyticsEngineDataset |
The Workers Analytics Engine dataset binding (structural; no workers-types needed). |
AnalyticsEngineOptions |
Options for createAnalyticsEngine. |
AnalyticsEngineSink |
The Analytics Engine sink (events is available; deleteLink is not). |
SqlBinder |
How values get into a statement: bound parameters or escaped literals. |
SqlDialect |
Column expressions and engine quirks for one backend. |
Variables
Section titled “Variables”| Name | Summary |
|---|---|
ANALYTICS_ENGINE_BLOBS |
Blob column per dimension (see the module docs). |