Class PipelineSegmentExecution
- Namespace
- Pipelinez.Core.FaultHandling
- Assembly
- Pipelinez.dll
Records the execution outcome for a pipeline segment.
public sealed class PipelineSegmentExecution
- Inheritance
-
PipelineSegmentExecution
- Inherited Members
Constructors
PipelineSegmentExecution(string, DateTimeOffset, DateTimeOffset, bool, string?)
Initializes a new segment execution record.
public PipelineSegmentExecution(string segmentName, DateTimeOffset startedAtUtc, DateTimeOffset completedAtUtc, bool succeeded, string? failureMessage = null)
Parameters
segmentNamestringstartedAtUtcDateTimeOffsetcompletedAtUtcDateTimeOffsetsucceededboolfailureMessagestring
Properties
CompletedAtUtc
Gets the time segment execution completed.
public DateTimeOffset CompletedAtUtc { get; }
Property Value
Duration
Gets the total execution duration for the segment.
public TimeSpan Duration { get; }
Property Value
FailureMessage
Gets the failure message recorded for the segment, if execution failed.
public string? FailureMessage { get; }
Property Value
SegmentName
Gets the segment name.
public string SegmentName { get; }
Property Value
StartedAtUtc
Gets the time segment execution started.
public DateTimeOffset StartedAtUtc { get; }
Property Value
Succeeded
Gets a value indicating whether the segment completed successfully.
public bool Succeeded { get; }