Module: Auth0::Api::V2::Stats
- Included in:
- Auth0::Api::V2
- Defined in:
- lib/auth0/api/v2/stats.rb
Overview
Methods to use the stats endpoints
Instance Method Summary collapse
-
#active_users ⇒ integer
Gets the active users count (logged in during the last 30 days).
-
#daily_stats(from, to) ⇒ json
Gets the daily stats for a particular period.
Instance Method Details
#active_users ⇒ integer
Gets the active users count (logged in during the last 30 days).
12 13 14 15 |
# File 'lib/auth0/api/v2/stats.rb', line 12 def active_users path = "#{stats_path}/active-users" get(path) end |
#daily_stats(from, to) ⇒ json
Gets the daily stats for a particular period.
23 24 25 26 27 28 29 30 |
# File 'lib/auth0/api/v2/stats.rb', line 23 def daily_stats(from, to) path = "#{stats_path}/daily" request_params = { from: from, to: to } get(path, request_params) end |