Module: Cloudflare::RealtimeKit::Analytics
- Defined in:
- lib/cloudflare/realtime_kit/analytics.rb
Overview
Analytics endpoints. Not a CRUD resource — a thin namespace for the two reporting endpoints upstream exposes. Both return raw report data as a Hash; no per-resource modeling.
Cloudflare::RealtimeKit::Analytics.daywise(
app_id: "app-1",
start_date: "2025-01-01",
end_date: "2025-01-31"
)
Cloudflare::RealtimeKit::Analytics.livestreams_overall(
app_id: "app-1",
start_time: "2025-01-01T00:00:00Z",
end_time: "2025-01-31T23:59:59Z"
)
Class Method Summary collapse
-
.daywise(app_id:, start_date:, end_date:, account_id: nil) ⇒ Object
GET /analytics/daywise — daily breakdown of meeting activity.
-
.livestreams_overall(app_id:, start_time:, end_time:, account_id: nil) ⇒ Object
GET /analytics/livestreams/overall — overall livestream metrics.
Class Method Details
.daywise(app_id:, start_date:, end_date:, account_id: nil) ⇒ Object
GET /analytics/daywise — daily breakdown of meeting activity.
21 22 23 24 25 |
# File 'lib/cloudflare/realtime_kit/analytics.rb', line 21 def daywise(app_id:, start_date:, end_date:, account_id: nil) fetch("/accounts/{account_id}/realtime/kit/{app_id}/analytics/daywise", app_id: app_id, account_id: account_id, params: { start_date: start_date, end_date: end_date }) end |
.livestreams_overall(app_id:, start_time:, end_time:, account_id: nil) ⇒ Object
GET /analytics/livestreams/overall — overall livestream metrics.
28 29 30 31 32 |
# File 'lib/cloudflare/realtime_kit/analytics.rb', line 28 def livestreams_overall(app_id:, start_time:, end_time:, account_id: nil) fetch("/accounts/{account_id}/realtime/kit/{app_id}/analytics/livestreams/overall", app_id: app_id, account_id: account_id, params: { start_time: start_time, end_time: end_time }) end |