-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathauth0_apis.pipe
More file actions
31 lines (28 loc) · 943 Bytes
/
auth0_apis.pipe
File metadata and controls
31 lines (28 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
TOKEN "read" READ
TAGS "auth0"
NODE get_apis
SQL >
%
SELECT
event.data.audience::String as api_identifier,
count() as total_events,
min(event_time) as first_seen,
max(event_time) as last_seen
FROM auth0
WHERE
event.data.audience::String != ''
AND event_type IN ('seccft', 'sertft') -- Token issuance events
{% if defined(client_id) and client_id != 'all' %}
AND event.data.client_id::String = {{String(client_id)}}
{% end %}
{% if defined(connection_id) and connection_id != 'all' %}
AND event.data.connection_id::String = {{String(connection_id)}}
{% end %}
{% if defined(tenant_name) and tenant_name != 'all' %}
AND event.data.tenant_name::String = {{String(tenant_name)}}
{% end %}
GROUP BY
event.data.audience::String
ORDER BY
total_events DESC
TYPE ENDPOINT