Class LogsClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Contains methods to access the /logs endpoints.
public class LogsClient : BaseClient, ILogsClient
- Inheritance
-
LogsClient
- Implements
- Inherited Members
Constructors
LogsClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance of LogsClient
public LogsClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnectionIManagementConnection used to make all API calls.
baseUri
UriUri of the endpoint to use in making API calls.
defaultHeaders
IDictionary<string, string>Dictionary containing default headers included with every request this client makes.
Methods
GetAllAsync(GetLogsRequest, PaginationInfo, CancellationToken)
Retrieves log entries that match the specified search criteria.
public Task<IPagedList<LogEntry>> GetAllAsync(GetLogsRequest request, PaginationInfo pagination = null, CancellationToken cancellationToken = default)
Parameters
request
GetLogsRequestSpecifies criteria to use when querying logs.
pagination
PaginationInfoSpecifies pagination info to use when requesting paged results.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<IPagedList<LogEntry>>
An IPagedList<T> containing the list of log entries.
GetAsync(string, CancellationToken)
Retrieves the data related to the log entry identified by id. This returns a single log entry representation as specified in the schema.
public Task<LogEntry> GetAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringThe identifier of the log entry to retrieve.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.