Class TaskQueueStats
- Namespace
- Temporalio.Api.TaskQueue.V1
- Assembly
- Temporalio.dll
For workflow task queues, we only report the normal queue stats, not sticky queues. This means the stats reported here do not count all workflow tasks. However, because the tasks queued in sticky queues only remain valid for a few seconds, the inaccuracy becomes less significant as the backlog age grows.
public sealed class TaskQueueStats : IMessage<TaskQueueStats>, IEquatable<TaskQueueStats>, IDeepCloneable<TaskQueueStats>, IBufferMessage, IMessage
- Inheritance
-
TaskQueueStats
- Implements
-
IMessage<TaskQueueStats>IDeepCloneable<TaskQueueStats>IBufferMessageIMessage
- Inherited Members
Constructors
TaskQueueStats()
public TaskQueueStats()
TaskQueueStats(TaskQueueStats)
public TaskQueueStats(TaskQueueStats other)
Parameters
other
TaskQueueStats
Fields
ApproximateBacklogAgeFieldNumber
Field number for the "approximate_backlog_age" field.
public const int ApproximateBacklogAgeFieldNumber = 2
Field Value
ApproximateBacklogCountFieldNumber
Field number for the "approximate_backlog_count" field.
public const int ApproximateBacklogCountFieldNumber = 1
Field Value
TasksAddRateFieldNumber
Field number for the "tasks_add_rate" field.
public const int TasksAddRateFieldNumber = 3
Field Value
TasksDispatchRateFieldNumber
Field number for the "tasks_dispatch_rate" field.
public const int TasksDispatchRateFieldNumber = 4
Field Value
Properties
ApproximateBacklogAge
Approximate age of the oldest task in the backlog based on the create timestamp of the task at the head of the queue.
public Duration ApproximateBacklogAge { get; set; }
Property Value
- Duration
ApproximateBacklogCount
The approximate number of tasks backlogged in this task queue. May count expired tasks but eventually converges to the right value.
public long ApproximateBacklogCount { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<TaskQueueStats> Parser { get; }
Property Value
- MessageParser<TaskQueueStats>
TasksAddRate
Approximate tasks per second added to the task queue based on activity within a fixed window. This includes both backlogged and sync-matched tasks.
public float TasksAddRate { get; set; }
Property Value
TasksDispatchRate
Approximate tasks per second dispatched to workers based on activity within a fixed window. This includes both backlogged and sync-matched tasks.
public float TasksDispatchRate { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public TaskQueueStats Clone()
Returns
- TaskQueueStats
A deep clone of this object.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
Equals(TaskQueueStats)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TaskQueueStats other)
Parameters
other
TaskQueueStatsAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(TaskQueueStats)
Merges the given message into this one.
public void MergeFrom(TaskQueueStats other)
Parameters
other
TaskQueueStats
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.