events
Creates, updates, deletes, gets or lists an events resource.
Overview
| Name | events |
| Type | Resource |
| Id | cloudflare.magic_transit.events |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
e | object | |
n | number | Sequence number, used to order events with the same timestamp |
t | number | Time the Event was recorded (seconds since the Unix epoch) |
v | string | Version |
| Name | Datatype | Description |
|---|---|---|
a | number | Time the Event was collected (seconds since the Unix epoch) |
k | string | Kind |
n | number | Sequence number, used to order events with the same timestamp |
t | number | Time the Event was recorded (seconds since the Unix epoch) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | account_id, connector_id, event_t, event_n | ||
list | select | account_id, connector_id | from, to, limit, cursor, k |
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. |
connector_id | string | |
event_n | number | |
event_t | number | |
cursor | string | |
from | number | |
k | string | Filter by event kind |
limit | number | |
to | number |
SELECT examples
- get
- list
OK
SELECT
e,
n,
t,
v
FROM cloudflare.magic_transit.events
WHERE account_id = '{{ account_id }}' -- required
AND connector_id = '{{ connector_id }}' -- required
AND event_t = '{{ event_t }}' -- required
AND event_n = '{{ event_n }}' -- required
;
OK
SELECT
a,
k,
n,
t
FROM cloudflare.magic_transit.events
WHERE account_id = '{{ account_id }}' -- required
AND connector_id = '{{ connector_id }}' -- required
AND from = '{{ from }}'
AND to = '{{ to }}'
AND limit = '{{ limit }}'
AND cursor = '{{ cursor }}'
AND k = '{{ k }}'
;