Table of Contents

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

desc string

Short description of the queue statistics

Properties

AvgDequeueRate

Get average dequeue rate.

public double? AvgDequeueRate { get; }

Property Value

double?

AvgEnqueueRate

Get average enqueue rate.

public double? AvgEnqueueRate { get; }

Property Value

double?

CreatedOn

Gets the time statistics were created at.

public DateTime CreatedOn { get; }

Property Value

DateTime

Description

Short description

public string Description { get; protected set; }

Property Value

string

ItemsInQueue

Get avg/min/max number of items in queue.

public AvgMinMax<long> ItemsInQueue { get; }

Property Value

AvgMinMax<long>

QueueName

Queue name

public string QueueName { get; set; }

Property Value

string

SuspendedOn

Gets the time statistics were suspended at.

public DateTime SuspendedOn { get; }

Property Value

DateTime

TimeInQueue

Get avg/min/max time that items spend in queue.

public AvgMinMax<TimeSpan> TimeInQueue { get; }

Property Value

AvgMinMax<TimeSpan>

TimeToProcess

Get avg/min/max time it takes to process an item after it is dequeued.

public AvgMinMax<TimeSpan> TimeToProcess { get; }

Property Value

AvgMinMax<TimeSpan>

TotalDequeued

Get total number of items dequeued.

public long TotalDequeued { get; protected set; }

Property Value

long

TotalDropped

Get total number of items dropped (discarded) from the queue.

public long TotalDropped { get; protected set; }

Property Value

long

TotalEnqueued

Get total number of items enqueued.

public long TotalEnqueued { get; protected set; }

Property Value

long

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_count long