Package io.antmedia.analytic.model
Class PublishStatsEvent
java.lang.Object
io.antmedia.analytic.model.AnalyticEvent
io.antmedia.analytic.model.PublishStatsEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longAmount of byte transferred between loggingsprivate intIndicates that frames were dropped during the encoding process.private intIndicates that packets were dropped during the ingestion.private longprivate intThe current size of the queue of frames awaiting encoding.static final Stringprivate intHeight of the streamprivate intThe current size of the input queue.private intThe jitter of the stream.private doubleThe packet lost ratio of the stream.private intThe total number of packets lost during WebRTC streamingprivate StringThe remote IP of the broadasterprivate intThe round trip time of the stream.private doubleSpeed of the stream.private longprivate StringThe user agent of the broadcasterprivate intWidth of the streamFields inherited from class io.antmedia.analytic.model.AnalyticEvent
LOG_SOURCE_CLIENT, LOG_SOURCE_SERVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongintintlongintintintintdoubleintintdoublegetSpeed()longintgetWidth()voidsetByteTransferred(long byteTransferred) voidsetDroppedFrameCountInEncoding(int droppedFrameCountInEncoding) voidsetDroppedPacketCountInIngestion(int droppedPacketCountInIngestion) voidsetDurationMs(long durationMs) voidsetEncodingQueueSize(int encodingQueueSize) voidsetHeight(int height) voidsetInputQueueSize(int inputQueueSize) voidsetJitterMs(int jitterMs) voidsetPacketLostRatio(double packetLostRatio) voidsetPacketsLost(int packetsLost) voidsetRemoteIp(String remoteIp) voidsetRoundTripTimeMs(int roundTripTimeMs) voidsetSpeed(double speed) voidsetTotalByteReceived(long totalByteReceived) voidsetUserAgent(String userAgent) voidsetWidth(int width) Methods inherited from class io.antmedia.analytic.model.AnalyticEvent
getApp, getEvent, getLogSource, getStreamId, getSubscriberId, getTimeMs, getToken, setApp, setEvent, setLogSource, setStreamId, setSubscriberId, 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
-