Skip to main content

analytics

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

Overview

Nameanalytics
TypeResource
Iddeno.organization.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_organization_analyticsselectorganizationId, since, untilThis API returns analytics for the specified organization.
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
organizationIdstring (uuid)Organization ID
sincestring (date-time) Start of the time range in RFC3339 format. Defaults to 24 hours ago. Note that the maximum allowed time range is 24 hours. (example: 2021-08-01T00:00:00Z)
untilstring (date-time) End of the time range in RFC3339 format. Defaults to the current time. Note that the maximum allowed time range is 24 hours. (example: 2021-08-02T00:00:00Z)

SELECT examples

This API returns analytics for the specified organization.
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.organization.analytics
WHERE organizationId = '{{ organizationId }}' -- required
AND since = '{{ since }}' -- required
AND until = '{{ until }}' -- required
;