- java.lang.Object
-
- dev.onvoid.webrtc.RTCStats
-
public class RTCStats extends Object
RTCStats represents the stats object constructed by inspecting a specific monitored object at a specific moment in time.- Author:
- Alex Andres
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Get the unique id that is associated with the object that was inspected to produce this RTCStats object.Map<String,Object>getMembers()Returns map of member names to values.longgetTimestamp()Get the timestamp in microseconds.RTCStatsTypegetType()Get the type of the object that was inspected to produce the stats.StringtoString()
-
-
-
Constructor Detail
-
RTCStats
protected RTCStats(long timestamp, RTCStatsType type, String id, Map<String,Object> members)
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
Get the timestamp in microseconds. For statistics that came from a remote source (e.g., from received RTCP packets), timestamp represents the time at which the information arrived at the local endpoint.- Returns:
- the timestamp in microseconds relative to the UNIX epoch.
-
getType
public RTCStatsType getType()
Get the type of the object that was inspected to produce the stats.- Returns:
- the type of the inspected object.
-
getId
public String getId()
Get the unique id that is associated with the object that was inspected to produce this RTCStats object.- Returns:
- the unique id representing this stats object.
-
getMembers
public Map<String,Object> getMembers()
Returns map of member names to values. Returns as an ordered map so that the stats object can be serialized with a consistent ordering.Values will be one of the following objects: - Boolean - Integer (for 32-bit signed integers) - Long (for 32-bit unsigned and 64-bit signed integers) - BigInteger (for 64-bit unsigned integers) - Double - String - The array form of any of the above (e.g., Integer[])
- Returns:
- the stats map.
-
-