Class WorkerHeartbeat
- Namespace
- Temporalio.Api.Worker.V1
- Assembly
- Temporalio.dll
Worker info message, contains information about the worker and its current state. All information is provided by the worker itself. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: Removing those words make names less clear. --)
public sealed class WorkerHeartbeat : IMessage<WorkerHeartbeat>, IEquatable<WorkerHeartbeat>, IDeepCloneable<WorkerHeartbeat>, IBufferMessage, IMessage
- Inheritance
-
WorkerHeartbeat
- Implements
-
IMessage<WorkerHeartbeat>IDeepCloneable<WorkerHeartbeat>IBufferMessageIMessage
- Inherited Members
Constructors
WorkerHeartbeat()
public WorkerHeartbeat()
WorkerHeartbeat(WorkerHeartbeat)
public WorkerHeartbeat(WorkerHeartbeat other)
Parameters
other
WorkerHeartbeat
Fields
ActivityPollerInfoFieldNumber
Field number for the "activity_poller_info" field.
public const int ActivityPollerInfoFieldNumber = 18
Field Value
ActivityTaskSlotsInfoFieldNumber
Field number for the "activity_task_slots_info" field.
public const int ActivityTaskSlotsInfoFieldNumber = 13
Field Value
CurrentStickyCacheSizeFieldNumber
Field number for the "current_sticky_cache_size" field.
public const int CurrentStickyCacheSizeFieldNumber = 22
Field Value
DeploymentVersionFieldNumber
Field number for the "deployment_version" field.
public const int DeploymentVersionFieldNumber = 5
Field Value
ElapsedSinceLastHeartbeatFieldNumber
Field number for the "elapsed_since_last_heartbeat" field.
public const int ElapsedSinceLastHeartbeatFieldNumber = 11
Field Value
HeartbeatTimeFieldNumber
Field number for the "heartbeat_time" field.
public const int HeartbeatTimeFieldNumber = 10
Field Value
HostInfoFieldNumber
Field number for the "host_info" field.
public const int HostInfoFieldNumber = 3
Field Value
LocalActivitySlotsInfoFieldNumber
Field number for the "local_activity_slots_info" field.
public const int LocalActivitySlotsInfoFieldNumber = 15
Field Value
NexusPollerInfoFieldNumber
Field number for the "nexus_poller_info" field.
public const int NexusPollerInfoFieldNumber = 19
Field Value
NexusTaskSlotsInfoFieldNumber
Field number for the "nexus_task_slots_info" field.
public const int NexusTaskSlotsInfoFieldNumber = 14
Field Value
SdkNameFieldNumber
Field number for the "sdk_name" field.
public const int SdkNameFieldNumber = 6
Field Value
SdkVersionFieldNumber
Field number for the "sdk_version" field.
public const int SdkVersionFieldNumber = 7
Field Value
StartTimeFieldNumber
Field number for the "start_time" field.
public const int StartTimeFieldNumber = 9
Field Value
StatusFieldNumber
Field number for the "status" field.
public const int StatusFieldNumber = 8
Field Value
TaskQueueFieldNumber
Field number for the "task_queue" field.
public const int TaskQueueFieldNumber = 4
Field Value
TotalStickyCacheHitFieldNumber
Field number for the "total_sticky_cache_hit" field.
public const int TotalStickyCacheHitFieldNumber = 20
Field Value
TotalStickyCacheMissFieldNumber
Field number for the "total_sticky_cache_miss" field.
public const int TotalStickyCacheMissFieldNumber = 21
Field Value
WorkerIdentityFieldNumber
Field number for the "worker_identity" field.
public const int WorkerIdentityFieldNumber = 2
Field Value
WorkerInstanceKeyFieldNumber
Field number for the "worker_instance_key" field.
public const int WorkerInstanceKeyFieldNumber = 1
Field Value
WorkflowPollerInfoFieldNumber
Field number for the "workflow_poller_info" field.
public const int WorkflowPollerInfoFieldNumber = 16
Field Value
WorkflowStickyPollerInfoFieldNumber
Field number for the "workflow_sticky_poller_info" field.
public const int WorkflowStickyPollerInfoFieldNumber = 17
Field Value
WorkflowTaskSlotsInfoFieldNumber
Field number for the "workflow_task_slots_info" field.
public const int WorkflowTaskSlotsInfoFieldNumber = 12
Field Value
Properties
ActivityPollerInfo
public WorkerPollerInfo ActivityPollerInfo { get; set; }
Property Value
ActivityTaskSlotsInfo
public WorkerSlotsInfo ActivityTaskSlotsInfo { get; set; }
Property Value
CurrentStickyCacheSize
Current cache size, expressed in number of Workflow Executions.
public int CurrentStickyCacheSize { get; set; }
Property Value
DeploymentVersion
public WorkerDeploymentVersion DeploymentVersion { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
ElapsedSinceLastHeartbeat
Elapsed time since the last heartbeat from the worker.
public Duration ElapsedSinceLastHeartbeat { get; set; }
Property Value
- Duration
HeartbeatTime
Timestamp of this heartbeat, coming from the worker. Worker should set it to "now". Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
public Timestamp HeartbeatTime { get; set; }
Property Value
- Timestamp
HostInfo
Worker host information.
public WorkerHostInfo HostInfo { get; set; }
Property Value
LocalActivitySlotsInfo
public WorkerSlotsInfo LocalActivitySlotsInfo { get; set; }
Property Value
NexusPollerInfo
public WorkerPollerInfo NexusPollerInfo { get; set; }
Property Value
NexusTaskSlotsInfo
public WorkerSlotsInfo NexusTaskSlotsInfo { get; set; }
Property Value
Parser
public static MessageParser<WorkerHeartbeat> Parser { get; }
Property Value
- MessageParser<WorkerHeartbeat>
SdkName
public string SdkName { get; set; }
Property Value
SdkVersion
public string SdkVersion { get; set; }
Property Value
StartTime
Worker start time. It can be used to determine worker uptime. (current time - start time)
public Timestamp StartTime { get; set; }
Property Value
- Timestamp
Status
Worker status. Defined by SDK.
public WorkerStatus Status { get; set; }
Property Value
TaskQueue
Task queue this worker is polling for tasks.
public string TaskQueue { get; set; }
Property Value
TotalStickyCacheHit
A Workflow Task found a cached Workflow Execution to run against.
public int TotalStickyCacheHit { get; set; }
Property Value
TotalStickyCacheMiss
A Workflow Task did not find a cached Workflow execution to run against.
public int TotalStickyCacheMiss { get; set; }
Property Value
WorkerIdentity
Worker identity, set by the client, may not be unique. Usually host_name+(user group name)+process_id, but can be overwritten by the user.
public string WorkerIdentity { get; set; }
Property Value
WorkerInstanceKey
Worker identifier, should be unique for the namespace. It is distinct from worker identity, which is not necessarily namespace-unique.
public string WorkerInstanceKey { get; set; }
Property Value
WorkflowPollerInfo
public WorkerPollerInfo WorkflowPollerInfo { get; set; }
Property Value
WorkflowStickyPollerInfo
public WorkerPollerInfo WorkflowStickyPollerInfo { get; set; }
Property Value
WorkflowTaskSlotsInfo
public WorkerSlotsInfo WorkflowTaskSlotsInfo { 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 WorkerHeartbeat Clone()
Returns
- WorkerHeartbeat
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(WorkerHeartbeat)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(WorkerHeartbeat other)
Parameters
other
WorkerHeartbeatAn 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(WorkerHeartbeat)
Merges the given message into this one.
public void MergeFrom(WorkerHeartbeat other)
Parameters
other
WorkerHeartbeat
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.