analytics
Creates, updates, deletes, gets or lists an analytics resource.
Overview
| Name | analytics |
| Type | Resource |
| Id | deno.project.analytics |
Fields
The following fields are returned by SELECT queries:
- get_project_analytics
| Name | Datatype | Description |
|---|---|---|
fields | array | |
values | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_project_analytics | select | projectId, since, until | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
projectId | string (uuid) | Project ID |
since | string (date-time) | Start of the time range in RFC3339 format. Defaults to 24 hours ago. (example: 2021-08-01T00:00:00Z) |
until | string (date-time) | End of the time range in RFC3339 format. Defaults to the current time. (example: 2021-08-02T00:00:00Z) |
SELECT examples
- get_project_analytics
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
;