analytics
Creates, updates, deletes, gets or lists an analytics resource.
Overview
| Name | analytics |
| Type | Resource |
| Id | cloudflare.realtime_kit.analytics |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
data | object | |
success | boolean |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id, app_id | start_date, end_date | Returns day-wise session and recording analytics data of an App for the specified time range start_date to end_date. If start_date and end_date are not provided, the default time range is set from 30 days ago to the current date. |
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 |
|---|---|---|
account_id | string | The Cloudflare account ID. |
app_id | string | The Access application ID. |
end_date | string | end date in YYYY-MM-DD format |
start_date | string | start date in YYYY-MM-DD format |
SELECT examples
- list
Returns day-wise session and recording analytics data of an App for the specified time range start_date to end_date. If start_date and end_date are not provided, the default time range is set from 30 days ago to the current date.
SELECT
data,
success
FROM cloudflare.realtime_kit.analytics
WHERE account_id = '{{ account_id }}' -- required
AND app_id = '{{ app_id }}' -- required
AND start_date = '{{ start_date }}'
AND end_date = '{{ end_date }}'
;