docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ILogsAdminApi

    Represents a collection of functions to interact with the API endpoints

    Inherited Members
    IApiAccessor.Configuration
    IApiAccessor.GetBasePath()
    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)

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<LogsResponse>

    The operation

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)