Class ActivityExecutionListInfo
- Namespace
- Temporalio.Api.Activity.V1
- Assembly
- Temporalio.dll
Limited activity information returned in the list response. When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it may already be present in ActivityExecutionInfo but not at the top-level).
public sealed class ActivityExecutionListInfo : IMessage<ActivityExecutionListInfo>, IEquatable<ActivityExecutionListInfo>, IDeepCloneable<ActivityExecutionListInfo>, IBufferMessage, IMessage
- Inheritance
-
ActivityExecutionListInfo
- Implements
-
IMessage<ActivityExecutionListInfo>IDeepCloneable<ActivityExecutionListInfo>IBufferMessageIMessage
- Inherited Members
Constructors
ActivityExecutionListInfo()
public ActivityExecutionListInfo()
ActivityExecutionListInfo(ActivityExecutionListInfo)
public ActivityExecutionListInfo(ActivityExecutionListInfo other)
Parameters
Fields
ActivityIdFieldNumber
Field number for the "activity_id" field.
public const int ActivityIdFieldNumber = 1
Field Value
ActivityTypeFieldNumber
Field number for the "activity_type" field.
public const int ActivityTypeFieldNumber = 3
Field Value
CloseTimeFieldNumber
Field number for the "close_time" field.
public const int CloseTimeFieldNumber = 5
Field Value
ExecutionDurationFieldNumber
Field number for the "execution_duration" field.
public const int ExecutionDurationFieldNumber = 11
Field Value
RunIdFieldNumber
Field number for the "run_id" field.
public const int RunIdFieldNumber = 2
Field Value
ScheduleTimeFieldNumber
Field number for the "schedule_time" field.
public const int ScheduleTimeFieldNumber = 4
Field Value
SearchAttributesFieldNumber
Field number for the "search_attributes" field.
public const int SearchAttributesFieldNumber = 7
Field Value
StateSizeBytesFieldNumber
Field number for the "state_size_bytes" field.
public const int StateSizeBytesFieldNumber = 10
Field Value
StateTransitionCountFieldNumber
Field number for the "state_transition_count" field.
public const int StateTransitionCountFieldNumber = 9
Field Value
StatusFieldNumber
Field number for the "status" field.
public const int StatusFieldNumber = 6
Field Value
TaskQueueFieldNumber
Field number for the "task_queue" field.
public const int TaskQueueFieldNumber = 8
Field Value
Properties
ActivityId
A unique identifier of this activity within its namespace along with run ID (below).
public string ActivityId { get; set; }
Property Value
ActivityType
The type of the activity, a string that maps to a registered activity on a worker.
public ActivityType ActivityType { get; set; }
Property Value
CloseTime
If the activity is in a terminal status, this field represents the time the activity transitioned to that status.
public Timestamp CloseTime { get; set; }
Property Value
- Timestamp
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
ExecutionDuration
The difference between close time and scheduled time. This field is only populated if the activity is closed.
public Duration ExecutionDuration { get; set; }
Property Value
- Duration
Parser
public static MessageParser<ActivityExecutionListInfo> Parser { get; }
Property Value
- MessageParser<ActivityExecutionListInfo>
RunId
The run ID of the standalone activity.
public string RunId { get; set; }
Property Value
ScheduleTime
Time the activity was originally scheduled via a StartActivityExecution request.
public Timestamp ScheduleTime { get; set; }
Property Value
- Timestamp
SearchAttributes
Search attributes from the start request.
public SearchAttributes SearchAttributes { get; set; }
Property Value
StateSizeBytes
Updated once on scheduled and once on terminal status.
public long StateSizeBytes { get; set; }
Property Value
StateTransitionCount
Updated on terminal status.
public long StateTransitionCount { get; set; }
Property Value
Status
Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not available in the list response.
public ActivityExecutionStatus Status { get; set; }
Property Value
TaskQueue
The task queue this activity was scheduled on when it was originally started, updated on activity options update.
public string TaskQueue { 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 ActivityExecutionListInfo Clone()
Returns
- ActivityExecutionListInfo
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
otherobject
Returns
Equals(ActivityExecutionListInfo)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ActivityExecutionListInfo other)
Parameters
otherActivityExecutionListInfoAn 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
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(ActivityExecutionListInfo)
Merges the given message into this one.
public void MergeFrom(ActivityExecutionListInfo other)
Parameters
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
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.