Skip to main content

analytics

Creates, updates, deletes, gets or lists an analytics resource.

Overview

Nameanalytics
TypeResource
Iddeno.project.analytics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
fieldsarray
valuesarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_project_analyticsselectprojectId, since, untilThis API returns analytics for the specified project.
The analytics are returned as time series data in 15 minute intervals, with
the time field representing the start of the interval.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectIdstring (uuid)Project ID
sincestring (date-time) Start of the time range in RFC3339 format. Defaults to 24 hours ago. (example: 2021-08-01T00:00:00Z)
untilstring (date-time) End of the time range in RFC3339 format. Defaults to the current time. (example: 2021-08-02T00:00:00Z)

SELECT examples

This API returns analytics for the specified project.
The analytics are returned as time series data in 15 minute intervals, with
the time field representing the start of the interval.

SELECT
fields,
values
FROM deno.project.analytics
WHERE projectId = '{{ projectId }}' -- required
AND since = '{{ since }}' -- required
AND until = '{{ until }}' -- required
;