Package io.antmedia.analytic.model
Class PublishStatsEvent
java.lang.Object
io.antmedia.analytic.model.AnalyticEvent
io.antmedia.analytic.model.PublishStatsEvent
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
Amount of byte transferred between loggingsprivate int
Indicates that frames were dropped during the encoding process.private int
Indicates that packets were dropped during the ingestion.private long
private int
The current size of the queue of frames awaiting encoding.static final String
private int
Height of the streamprivate int
The current size of the input queue.private int
The jitter of the stream.private double
The packet lost ratio of the stream.private int
The total number of packets lost during WebRTC streamingprivate String
The remote IP of the broadasterprivate int
The round trip time of the stream.private double
Speed of the stream.private long
private String
The user agent of the broadcasterprivate int
Width of the streamFields inherited from class io.antmedia.analytic.model.AnalyticEvent
LOG_SOURCE_CLIENT, LOG_SOURCE_SERVER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
int
int
long
int
int
int
int
double
int
int
double
getSpeed()
long
int
getWidth()
void
setByteTransferred
(long byteTransferred) void
setDroppedFrameCountInEncoding
(int droppedFrameCountInEncoding) void
setDroppedPacketCountInIngestion
(int droppedPacketCountInIngestion) void
setDurationMs
(long durationMs) void
setEncodingQueueSize
(int encodingQueueSize) void
setHeight
(int height) void
setInputQueueSize
(int inputQueueSize) void
setJitterMs
(int jitterMs) void
setPacketLostRatio
(double packetLostRatio) void
setPacketsLost
(int packetsLost) void
setRemoteIp
(String remoteIp) void
setRoundTripTimeMs
(int roundTripTimeMs) void
setSpeed
(double speed) void
setTotalByteReceived
(long totalByteReceived) void
setUserAgent
(String userAgent) void
setWidth
(int width) Methods inherited from class io.antmedia.analytic.model.AnalyticEvent
getApp, getEvent, getLogSource, getStreamId, getTimeMs, getToken, setApp, setEvent, setLogSource, setStreamId, setTimeMs, setToken
-
Field Details
-
EVENT_PUBLISH_STATS
- See Also:
-
totalByteReceived
private long totalByteReceived -
byteTransferred
private long byteTransferredAmount of byte transferred between loggings -
durationMs
private long durationMs -
width
private int widthWidth of the stream -
height
private int heightHeight of the stream -
speed
private double speedSpeed of the stream. It should be around 1.0x for RTMP, RTSP, SRT streams. This value does not make sense if it's WebRTC -
inputQueueSize
private int inputQueueSizeThe current size of the input queue. -
encodingQueueSize
private int encodingQueueSizeThe current size of the queue of frames awaiting encoding. -
droppedFrameCountInEncoding
private int droppedFrameCountInEncodingIndicates that frames were dropped during the encoding process. Frames are dropped if the size of the encoding queue exceeds the threshold defined inAppSettings#encodingQueueSize
. -
droppedPacketCountInIngestion
private int droppedPacketCountInIngestionIndicates that packets were dropped during the ingestion. Packets are dropped if the size of the inputQueueSize exceeds the threshold defined inAppSettings#encodingQueueSize
. -
roundTripTimeMs
private int roundTripTimeMsThe round trip time of the stream. It's meaningful for WebRTC streams -
jitterMs
private int jitterMsThe jitter of the stream. It's meaningful for WebRTC streams -
packetLostRatio
private double packetLostRatioThe packet lost ratio of the stream. It's meaningful for WebRTC streams -
packetsLost
private int packetsLostThe total number of packets lost during WebRTC streaming -
remoteIp
The remote IP of the broadaster -
userAgent
The user agent of the broadcaster
-
-
Constructor Details
-
PublishStatsEvent
public PublishStatsEvent()
-
-
Method Details
-
getTotalByteReceived
public long getTotalByteReceived() -
setTotalByteReceived
public void setTotalByteReceived(long totalByteReceived) -
getDurationMs
public long getDurationMs() -
setDurationMs
public void setDurationMs(long durationMs) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getByteTransferred
public long getByteTransferred() -
setByteTransferred
public void setByteTransferred(long byteTransferred) -
getSpeed
public double getSpeed()- Returns:
- the speed
-
setSpeed
public void setSpeed(double speed) - Parameters:
speed
- the speed to set
-
getInputQueueSize
public int getInputQueueSize()- Returns:
- the inputQueueSize
-
setInputQueueSize
public void setInputQueueSize(int inputQueueSize) - Parameters:
inputQueueSize
- the inputQueueSize to set
-
getEncodingQueueSize
public int getEncodingQueueSize()- Returns:
- the encodingQueueSize
-
setEncodingQueueSize
public void setEncodingQueueSize(int encodingQueueSize) - Parameters:
encodingQueueSize
- the encodingQueueSize to set
-
getDroppedFrameCountInEncoding
public int getDroppedFrameCountInEncoding()- Returns:
- the droppedFrameCountInEncoding
-
setDroppedFrameCountInEncoding
public void setDroppedFrameCountInEncoding(int droppedFrameCountInEncoding) - Parameters:
droppedFrameCountInEncoding
- the droppedFrameCountInEncoding to set
-
getDroppedPacketCountInIngestion
public int getDroppedPacketCountInIngestion()- Returns:
- the droppedPacketCountInIngestion
-
setDroppedPacketCountInIngestion
public void setDroppedPacketCountInIngestion(int droppedPacketCountInIngestion) - Parameters:
droppedPacketCountInIngestion
- the droppedPacketCountInIngestion to set
-
getRoundTripTimeMs
public int getRoundTripTimeMs()- Returns:
- the roundTripTimeMs
-
setRoundTripTimeMs
public void setRoundTripTimeMs(int roundTripTimeMs) - Parameters:
roundTripTimeMs
- the roundTripTimeMs to set
-
getJitterMs
public int getJitterMs()- Returns:
- the jitterMs
-
setJitterMs
public void setJitterMs(int jitterMs) - Parameters:
jitterMs
- the jitterMs to set
-
getPacketLostRatio
public double getPacketLostRatio()- Returns:
- the packetLostRatio
-
setPacketLostRatio
public void setPacketLostRatio(double packetLostRatio) - Parameters:
packetLostRatio
- the packetLostRatio to set
-
getPacketsLost
public int getPacketsLost()- Returns:
- the packetsLost
-
setPacketsLost
public void setPacketsLost(int packetsLost) - Parameters:
packetsLost
- the packetsLost to set
-
getRemoteIp
- Returns:
- the remoteIp
-
setRemoteIp
- Parameters:
remoteIp
- the remoteIp to set
-
getUserAgent
- Returns:
- the userAgent
-
setUserAgent
- Parameters:
userAgent
- the userAgent to set
-