Table of Contents

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

segmentName string
startedAtUtc DateTimeOffset
completedAtUtc DateTimeOffset
succeeded bool
failureMessage string

Properties

CompletedAtUtc

Gets the time segment execution completed.

public DateTimeOffset CompletedAtUtc { get; }

Property Value

DateTimeOffset

Duration

Gets the total execution duration for the segment.

public TimeSpan Duration { get; }

Property Value

TimeSpan

FailureMessage

Gets the failure message recorded for the segment, if execution failed.

public string? FailureMessage { get; }

Property Value

string

SegmentName

Gets the segment name.

public string SegmentName { get; }

Property Value

string

StartedAtUtc

Gets the time segment execution started.

public DateTimeOffset StartedAtUtc { get; }

Property Value

DateTimeOffset

Succeeded

Gets a value indicating whether the segment completed successfully.

public bool Succeeded { get; }

Property Value

bool