Interface ILogsAdminApi
Represents a collection of functions to interact with the API endpoints
Namespace: Unity.Services.Apis.Admin.Observability
Assembly: Unity.Services.Apis.dll
Syntax
public interface ILogsAdminApi : IApiAccessor
Methods
GetLogs(string, string, int?, int?, string, string, string, CancellationToken)
Get Logs
Declaration
ApiOperation<LogsResponse> GetLogs(string projectId, string environmentId, int? offset = null, int? limit = null, string from = null, string to = null, string query = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | ID of the project. |
string | environmentId | ID of the environment |
int? | offset | the offset of the records to return (optional) |
int? | limit | the maximum number of records to return (optional) |
string | from | a RFC3339 timestamp used to specify the starting timestamp of the records to return. Supports relative time ranges (optional) |
string | to | a RFC3339 timestamp used to specify the ending timestamp of the records to return. Supports relative time ranges (optional) |
string | query | a query string used to filter the logs. Supports the filtering language (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |