Interface IStatsClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
public interface IStatsClient
Methods
GetActiveUsersAsync(CancellationToken)
Gets the active users count (logged in during the last 30 days).
Task<long> GetActiveUsersAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
GetDailyStatsAsync(DateTime, DateTime, CancellationToken)
Gets the daily stats for a particular period.
Task<IList<DailyStatistics>> GetDailyStatsAsync(DateTime from, DateTime to, CancellationToken cancellationToken = default)
Parameters
fromDateTimeThe first day of the period (inclusive).
toDateTimeThe last day of the period (inclusive).
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<IList<DailyStatistics>>
A list of DailyStatistics containing the statistics for each day in the period.