Class QueueStats
- Namespace
- Sportradar.LiveData.Sdk.Services.QueueStats
- Assembly
- Sportradar.LiveData.Sdk.dll
Queue statistics tracking total number of items in queue, total time spent in queue, total time to process items after they are dequeued, average enqueue/dequeue rate and total number of items enqueue, dequeued or dropped from the queue.
public class QueueStats : ICloneable
- Inheritance
-
QueueStats
- Implements
- Inherited Members
Constructors
QueueStats()
protected QueueStats()
QueueStats(string)
Initializes a new instance of the QueueStats class
public QueueStats(string desc)
Parameters
descstringShort description of the queue statistics
Properties
AvgDequeueRate
Get average dequeue rate.
public double? AvgDequeueRate { get; }
Property Value
AvgEnqueueRate
Get average enqueue rate.
public double? AvgEnqueueRate { get; }
Property Value
CreatedOn
Gets the time statistics were created at.
public DateTime CreatedOn { get; }
Property Value
Description
Short description
public string Description { get; protected set; }
Property Value
ItemsInQueue
Get avg/min/max number of items in queue.
public AvgMinMax<long> ItemsInQueue { get; }
Property Value
QueueName
Queue name
public string QueueName { get; set; }
Property Value
SuspendedOn
Gets the time statistics were suspended at.
public DateTime SuspendedOn { get; }
Property Value
TimeInQueue
Get avg/min/max time that items spend in queue.
public AvgMinMax<TimeSpan> TimeInQueue { get; }
Property Value
TimeToProcess
Get avg/min/max time it takes to process an item after it is dequeued.
public AvgMinMax<TimeSpan> TimeToProcess { get; }
Property Value
TotalDequeued
Get total number of items dequeued.
public long TotalDequeued { get; protected set; }
Property Value
TotalDropped
Get total number of items dropped (discarded) from the queue.
public long TotalDropped { get; protected set; }
Property Value
TotalEnqueued
Get total number of items enqueued.
public long TotalEnqueued { get; protected set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public QueueStats Clone()
Returns
- QueueStats
A new object that is a copy of this instance.
Suspend()
Stop collecting queue statistics
public void Suspend()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Remarks
Can be used for diagnostics purposes.
UpdateCurrentCount(long)
protected void UpdateCurrentCount(long curr_count)
Parameters
curr_countlong