@@ -2041,32 +2041,35 @@ func toICECandidatePairStats(candidatePairStats ice.CandidatePairStats) (ICECand
2041
2041
Type : StatsTypeCandidatePair ,
2042
2042
ID : newICECandidatePairStatsID (candidatePairStats .LocalCandidateID , candidatePairStats .RemoteCandidateID ),
2043
2043
// TransportID:
2044
- LocalCandidateID : candidatePairStats .LocalCandidateID ,
2045
- RemoteCandidateID : candidatePairStats .RemoteCandidateID ,
2046
- State : state ,
2047
- Nominated : candidatePairStats .Nominated ,
2048
- PacketsSent : candidatePairStats .PacketsSent ,
2049
- PacketsReceived : candidatePairStats .PacketsReceived ,
2050
- BytesSent : candidatePairStats .BytesSent ,
2051
- BytesReceived : candidatePairStats .BytesReceived ,
2052
- LastPacketSentTimestamp : statsTimestampFrom (candidatePairStats .LastPacketSentTimestamp ),
2053
- LastPacketReceivedTimestamp : statsTimestampFrom (candidatePairStats .LastPacketReceivedTimestamp ),
2054
- FirstRequestTimestamp : statsTimestampFrom (candidatePairStats .FirstRequestTimestamp ),
2055
- LastRequestTimestamp : statsTimestampFrom (candidatePairStats .LastRequestTimestamp ),
2056
- LastResponseTimestamp : statsTimestampFrom (candidatePairStats .LastResponseTimestamp ),
2057
- TotalRoundTripTime : candidatePairStats .TotalRoundTripTime ,
2058
- CurrentRoundTripTime : candidatePairStats .CurrentRoundTripTime ,
2059
- AvailableOutgoingBitrate : candidatePairStats .AvailableOutgoingBitrate ,
2060
- AvailableIncomingBitrate : candidatePairStats .AvailableIncomingBitrate ,
2061
- CircuitBreakerTriggerCount : candidatePairStats .CircuitBreakerTriggerCount ,
2062
- RequestsReceived : candidatePairStats .RequestsReceived ,
2063
- RequestsSent : candidatePairStats .RequestsSent ,
2064
- ResponsesReceived : candidatePairStats .ResponsesReceived ,
2065
- ResponsesSent : candidatePairStats .ResponsesSent ,
2066
- RetransmissionsReceived : candidatePairStats .RetransmissionsReceived ,
2067
- RetransmissionsSent : candidatePairStats .RetransmissionsSent ,
2068
- ConsentRequestsSent : candidatePairStats .ConsentRequestsSent ,
2069
- ConsentExpiredTimestamp : statsTimestampFrom (candidatePairStats .ConsentExpiredTimestamp ),
2044
+ LocalCandidateID : candidatePairStats .LocalCandidateID ,
2045
+ RemoteCandidateID : candidatePairStats .RemoteCandidateID ,
2046
+ State : state ,
2047
+ Nominated : candidatePairStats .Nominated ,
2048
+ PacketsSent : candidatePairStats .PacketsSent ,
2049
+ PacketsReceived : candidatePairStats .PacketsReceived ,
2050
+ BytesSent : candidatePairStats .BytesSent ,
2051
+ BytesReceived : candidatePairStats .BytesReceived ,
2052
+ LastPacketSentTimestamp : statsTimestampFrom (candidatePairStats .LastPacketSentTimestamp ),
2053
+ LastPacketReceivedTimestamp : statsTimestampFrom (candidatePairStats .LastPacketReceivedTimestamp ),
2054
+ FirstRequestTimestamp : statsTimestampFrom (candidatePairStats .FirstRequestTimestamp ),
2055
+ LastRequestTimestamp : statsTimestampFrom (candidatePairStats .LastRequestTimestamp ),
2056
+ FirstResponseTimestamp : statsTimestampFrom (candidatePairStats .FirstResponseTimestamp ),
2057
+ LastResponseTimestamp : statsTimestampFrom (candidatePairStats .LastResponseTimestamp ),
2058
+ FirstRequestReceivedTimestamp : statsTimestampFrom (candidatePairStats .FirstRequestReceivedTimestamp ),
2059
+ LastRequestReceivedTimestamp : statsTimestampFrom (candidatePairStats .LastRequestReceivedTimestamp ),
2060
+ TotalRoundTripTime : candidatePairStats .TotalRoundTripTime ,
2061
+ CurrentRoundTripTime : candidatePairStats .CurrentRoundTripTime ,
2062
+ AvailableOutgoingBitrate : candidatePairStats .AvailableOutgoingBitrate ,
2063
+ AvailableIncomingBitrate : candidatePairStats .AvailableIncomingBitrate ,
2064
+ CircuitBreakerTriggerCount : candidatePairStats .CircuitBreakerTriggerCount ,
2065
+ RequestsReceived : candidatePairStats .RequestsReceived ,
2066
+ RequestsSent : candidatePairStats .RequestsSent ,
2067
+ ResponsesReceived : candidatePairStats .ResponsesReceived ,
2068
+ ResponsesSent : candidatePairStats .ResponsesSent ,
2069
+ RetransmissionsReceived : candidatePairStats .RetransmissionsReceived ,
2070
+ RetransmissionsSent : candidatePairStats .RetransmissionsSent ,
2071
+ ConsentRequestsSent : candidatePairStats .ConsentRequestsSent ,
2072
+ ConsentExpiredTimestamp : statsTimestampFrom (candidatePairStats .ConsentExpiredTimestamp ),
2070
2073
}, nil
2071
2074
}
2072
2075
@@ -2163,10 +2166,22 @@ type ICECandidatePairStats struct {
2163
2166
// (LastRequestTimestamp - FirstRequestTimestamp) / RequestsSent.
2164
2167
LastRequestTimestamp StatsTimestamp `json:"lastRequestTimestamp"`
2165
2168
2169
+ // FirstResponseTimestamp represents the timestamp at which the first STUN response
2170
+ // was received on this particular candidate pair.
2171
+ FirstResponseTimestamp StatsTimestamp `json:"firstResponseTimestamp"`
2172
+
2166
2173
// LastResponseTimestamp represents the timestamp at which the last STUN response
2167
2174
// was received on this particular candidate pair.
2168
2175
LastResponseTimestamp StatsTimestamp `json:"lastResponseTimestamp"`
2169
2176
2177
+ // FirstRequestReceivedTimestamp represents the timestamp at which the first
2178
+ // connectivity check request was received.
2179
+ FirstRequestReceivedTimestamp StatsTimestamp `json:"firstRequestReceivedTimestamp"`
2180
+
2181
+ // LastRequestReceivedTimestamp represents the timestamp at which the last
2182
+ // connectivity check request was received.
2183
+ LastRequestReceivedTimestamp StatsTimestamp `json:"lastRequestReceivedTimestamp"`
2184
+
2170
2185
// TotalRoundTripTime represents the sum of all round trip time measurements
2171
2186
// in seconds since the beginning of the session, based on STUN connectivity
2172
2187
// check responses (ResponsesReceived), including those that reply to requests
0 commit comments