docs.unity3d.com
    Show / Hide Table of Contents

    Struct QosResult

    Represents the results of QoS measurements for a given region.

    Namespace: Unity.Services.Qos.Internal
    Syntax
    public struct QosResult

    Fields

    AverageLatencyMs

    Average latency of QoS measurements to the region.

    Declaration
    public int AverageLatencyMs
    Field Value
    Type Description
    Int32

    A positive integer, in milliseconds.

    Remarks

    The latency is determined by measuring the time between sending a packet and receiving the response for that packet, then taking the average for all responses received. Only packets for which a response was received are considered in the calculation.

    PacketLossPercent

    Percentage of packet loss observed in QoS measurements to the region.

    Declaration
    public float PacketLossPercent
    Field Value
    Type Description
    Single

    A positive flow value. The range is 0.0f - 1.0f (0 - 100%).

    Remarks

    Packet loss is determined by counting the number of packets for which a response was received from the QoS server, then taking the percentage based on the total number of packets sent.

    Region

    The identifier for the service's region used in this set of QoS measurements.

    Declaration
    public string Region
    Field Value
    Type Description
    String

    A string containing the region name.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023