Class PipelineHealthStatus
- Namespace
- Pipelinez.Core.Operational
- Assembly
- Pipelinez.dll
Represents a health snapshot for a pipeline.
public sealed class PipelineHealthStatus
- Inheritance
-
PipelineHealthStatus
- Inherited Members
Constructors
PipelineHealthStatus(string, PipelineHealthState, IReadOnlyList<string>, DateTimeOffset, PipelineStatus, PipelinePerformanceSnapshot, PipelineFaultState?)
Initializes a new health status snapshot.
public PipelineHealthStatus(string pipelineName, PipelineHealthState state, IReadOnlyList<string> reasons, DateTimeOffset observedAtUtc, PipelineStatus runtimeStatus, PipelinePerformanceSnapshot performance, PipelineFaultState? lastPipelineFault = null)
Parameters
pipelineNamestringstatePipelineHealthStatereasonsIReadOnlyList<string>observedAtUtcDateTimeOffsetruntimeStatusPipelineStatusperformancePipelinePerformanceSnapshotlastPipelineFaultPipelineFaultState
Properties
LastPipelineFault
Gets the last pipeline-level fault, if one has occurred.
public PipelineFaultState? LastPipelineFault { get; }
Property Value
ObservedAtUtc
Gets the time the health snapshot was observed.
public DateTimeOffset ObservedAtUtc { get; }
Property Value
Performance
Gets the performance snapshot used to evaluate health.
public PipelinePerformanceSnapshot Performance { get; }
Property Value
PipelineName
Gets the pipeline name.
public string PipelineName { get; }
Property Value
Reason
Gets a single formatted health reason string, when available.
public string? Reason { get; }
Property Value
Reasons
Gets the list of reasons contributing to the health state.
public IReadOnlyList<string> Reasons { get; }
Property Value
RuntimeStatus
Gets the runtime status snapshot used to evaluate health.
public PipelineStatus RuntimeStatus { get; }
Property Value
State
Gets the current health state.
public PipelineHealthState State { get; }