Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tinybird/pipes/auth0_apis.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ SQL >
event.data.audience::String
ORDER BY
total_events DESC

TYPE ENDPOINT
2 changes: 2 additions & 0 deletions tinybird/pipes/auth0_applications.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ SQL >
event.data.client_name::String
ORDER BY
total_events DESC

TYPE ENDPOINT
2 changes: 2 additions & 0 deletions tinybird/pipes/auth0_connections.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ SQL >
failed_attempts > 0
ORDER BY
total_events DESC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_conversion_rate.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ SQL >
{% end %}
{% if defined(tenant_name) and tenant_name != 'all' %}
AND event.data.tenant_name::String = {{ String(tenant_name) }}
{% end %}
{% end %}

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_cumulative_users.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ SQL >
{% end %}
GROUP BY day
)
ORDER BY day ASC
ORDER BY day ASC

TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/auth0_daily_login_fails.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ SQL >
group by day
order by day asc


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/auth0_daily_signups.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ SQL >
GROUP BY day
order by day asc


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/auth0_dau_ts.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ SQL >
GROUP BY day
ORDER BY day


TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_logs.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ SQL >
and event_time <= {{DateTime(date_to, '2024-01-01 23:59:59')}}
order by event_time desc
LIMIT {{Int32(page_size, 30)}}
OFFSET {{Int32(page, 0) * Int32(page_size, 30)}}
OFFSET {{Int32(page, 0) * Int32(page_size, 30)}}

TYPE ENDPOINT
2 changes: 2 additions & 0 deletions tinybird/pipes/auth0_mau.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ SQL >
{% if defined(tenant_name) and tenant_name != 'all' %}
AND event.data.tenant_name::String = {{String(tenant_name)}}
{% end %}

TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/auth0_mech_usage.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ SQL >
group by mech
order by logins desc


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/auth0_signups.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ SQL >
AND event.data.tenant_name::String = {{String(tenant_name)}}
{% end %}


TYPE ENDPOINT
5 changes: 4 additions & 1 deletion tinybird/pipes/auth0_suspicious_ips.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ SQL >
GROUP BY ip
HAVING failed_attempts >= {{Int16(min_failures, 5)}}
ORDER BY failed_attempts DESC
LIMIT {{Int32(limit, 100)}}
LIMIT {{Int32(limit, 100)}}

TYPE ENDPOINT

4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_tenants.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ SQL >
AND event_type = {{String(event_type)}}
{% end %}
GROUP BY tenant_name
ORDER BY tenant_name
ORDER BY tenant_name

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_top_browsers.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ SQL >
{% end %}
GROUP BY browser
ORDER BY request_count DESC
LIMIT 10
LIMIT 10

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_top_devices.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ SQL >
{% end %}
GROUP BY device
ORDER BY request_count DESC
LIMIT 10
LIMIT 10

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_top_domains.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ SQL >
{% end %}
GROUP BY domain
ORDER BY unique_emails DESC
LIMIT 10
LIMIT 10

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_user_retention_ts.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ SQL >
AND event.data.tenant_name::String = {{String(tenant_name)}}
{% end %}
GROUP BY day
ORDER BY day
ORDER BY day

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/auth0_users_total.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ SQL >
{% end %}
{% if defined(tenant_name) and tenant_name != 'all' %}
AND event.data.tenant_name::String = {{String(tenant_name)}}
{% end %}
{% end %}

TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/orb_churn_subs.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ SQL >
where event_type == 'subscription.ended'
and event_time >= now() - interval 30 day


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/orb_daily_subs_created_by_plan.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ SQL >
group by day, plan
order by day, subs asc


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/orb_invoices_issued.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ SQL >
where event_type == 'invoice.issued'
and event_time >= now() - interval 30 day


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/orb_invoices_paid.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ SQL >
where event_type == 'invoice.payment_succeeded'
and event_time >= now() - interval 30 day


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/orb_new_subs.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ SQL >
where event_type == 'subscription.started'
and event_time >= now() - interval 30 day


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/orb_subs_created_by_plan.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ SQL >
group by plan
order by subs asc


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/orb_subs_ts.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ SQL >
group by day
order by day


TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_incident_metrics.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ SQL >
{% end %}
) p
ON triggered.incident_id::String = p.incident_id::String
WHERE p.event_time >= triggered.triggered_at
WHERE p.event_time >= triggered.triggered_at

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_incident_types.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ SQL >
GROUP BY incident_type, title, cloud, cluster
ORDER BY total_incidents DESC
LIMIT {{Int32(page_size, 100)}}
OFFSET {{Int32(page, 0) * Int32(page_size, 100)}}
OFFSET {{Int32(page, 0) * Int32(page_size, 100)}}

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_incidents_over_time.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ SQL >
) as p
ON dr.hour = p.hour
GROUP BY dr.hour
ORDER BY dr.hour ASC
ORDER BY dr.hour ASC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_interruptions.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,6 @@ SQL >
FROM date_range dr
LEFT JOIN interruptions i ON dr.day = i.date
GROUP BY dr.day
ORDER BY day ASC
ORDER BY day ASC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_resolution_times.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ SQL >
{% if defined(service_id) and service_id != '' %}
AND event.event.data.service.id::String = {{String(service_id)}}
{% end %}
) as incident_ends ON incident_starts.incident_id = incident_ends.incident_id
) as incident_ends ON incident_starts.incident_id = incident_ends.incident_id

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_responders.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ SQL >
AND event.event.data.service.id::String = {{String(service_id)}}
{% end %}
GROUP BY responder
ORDER BY responses DESC
ORDER BY responses DESC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_response_effort.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ SQL >
--WHERE p.event.event.data.assignees[1].summary::String != ''

GROUP BY responder
ORDER BY hours DESC
ORDER BY hours DESC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_service_distribution.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ SQL >
AND event.event.data.service.id::String = {{String(service_id)}}
{% end %}
GROUP BY service
ORDER BY incidents DESC
ORDER BY incidents DESC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_services.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ SQL >
FROM pagerduty
WHERE event.event.data.service.summary::String IS NOT NULL
AND event_time >= now() - interval 30 day
ORDER BY service_name ASC
ORDER BY service_name ASC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/pagerduty_sleep_interruptions.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ SQL >
AND p.event.event.data.service.id::String = {{String(service_id)}}
{% end %}
GROUP BY responder
ORDER BY interruptions DESC
ORDER BY interruptions DESC

TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/pagerduty_status_distribution.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ SQL >
GROUP BY event_type
ORDER BY count DESC


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/stripe_subs_metric.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ SQL >
FROM stripe
where event_type = 'customer.subscription.created' or event_type = 'customer.subscription.deleted'


TYPE ENDPOINT
2 changes: 1 addition & 1 deletion tinybird/pipes/stripe_subs_ts.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ SQL >
group by day
order by day asc


TYPE ENDPOINT
5 changes: 4 additions & 1 deletion tinybird/pipes/vercel_branch_distribution.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ SQL >
AND event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
GROUP BY branch
ORDER BY deployments DESC
LIMIT 10
LIMIT 10

TYPE ENDPOINT

4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_cache_stats.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ SQL >
AND event.source::String = {{ String(source) }}
{% end %}
GROUP BY hour
ORDER BY hour ASC
ORDER BY hour ASC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_deployment_duration.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ SQL >
HAVING count(DISTINCT event_type) = 2
)
GROUP BY period
ORDER BY period ASC
ORDER BY period ASC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_deployment_metrics.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ SQL >
FROM vercel
WHERE event_type IN ('deployment.created', 'deployment.succeeded', 'deployment.error')
AND event_time >= {{DateTime(date_from, '2024-01-01 00:00:00')}}
AND event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
AND event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_deployments_over_time.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ SQL >
AND event_time >= {{DateTime(date_from, '2024-01-01 00:00:00')}}
AND event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
GROUP BY period, event_type
ORDER BY period ASC
ORDER BY period ASC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_environments.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ SQL >
event.environment as value
FROM vercel_logs
WHERE event.environment::String != ''
ORDER BY value::String ASC
ORDER BY value::String ASC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_errors.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ SQL >
AND event.source::String = {{ String(source) }}
{% end %}
GROUP BY hour
ORDER BY hour DESC
ORDER BY hour DESC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_git_analytics.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ SQL >
AND event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
AND author != ''
GROUP BY author
ORDER BY commits DESC
ORDER BY commits DESC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_git_distribution.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ SQL >
AND event_time >= {{DateTime(date_from, '2024-01-01 00:00:00')}}
AND event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
GROUP BY source
ORDER BY deployments DESC
ORDER BY deployments DESC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_project_stats.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ SQL >
AND event_time >= {{DateTime(date_from, '2024-01-01 00:00:00')}}
AND event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
GROUP BY project_id, project_name
ORDER BY total_deployments DESC
ORDER BY total_deployments DESC

TYPE ENDPOINT
4 changes: 3 additions & 1 deletion tinybird/pipes/vercel_projects.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ SQL >
event.projectName as value
FROM vercel_logs
WHERE event.projectName::String != ''
ORDER BY value::String ASC
ORDER BY value::String ASC

TYPE ENDPOINT
Loading
Loading