Class PipelineMetricsSnapshot
- Namespace
- DotCompute.Core.Telemetry
- Assembly
- DotCompute.Core.dll
Thread-safe snapshot of pipeline metrics using lock-free operations.
public sealed class PipelineMetricsSnapshot
- Inheritance
-
PipelineMetricsSnapshot
- Inherited Members
Constructors
PipelineMetricsSnapshot(string, long, long, TimeSpan, TimeSpan, TimeSpan, long, DateTime)
Thread-safe snapshot of pipeline metrics using lock-free operations.
public PipelineMetricsSnapshot(string pipelineId, long executionCount, long successCount, TimeSpan totalDuration, TimeSpan minDuration, TimeSpan maxDuration, long itemsProcessed, DateTime lastExecution)
Parameters
pipelineIdstringexecutionCountlongsuccessCountlongtotalDurationTimeSpanminDurationTimeSpanmaxDurationTimeSpanitemsProcessedlonglastExecutionDateTime
Properties
AverageDuration
Gets or sets the average duration.
public TimeSpan AverageDuration { get; }
Property Value
- TimeSpan
The average duration.
ExecutionCount
Gets or sets the execution count.
public long ExecutionCount { get; }
Property Value
- long
The execution count.
ItemThroughputPerSecond
Gets or sets the item throughput per second.
public double ItemThroughputPerSecond { get; }
Property Value
- double
The item throughput per second.
ItemsProcessed
Gets or sets the items processed.
public long ItemsProcessed { get; }
Property Value
- long
The items processed.
LastExecution
Gets or sets the last execution.
public DateTime LastExecution { get; set; }
Property Value
- DateTime
The last execution.
MaxDuration
Gets or sets the max duration.
public TimeSpan MaxDuration { get; }
Property Value
- TimeSpan
The max duration.
MinDuration
Gets or sets the min duration.
public TimeSpan MinDuration { get; }
Property Value
- TimeSpan
The min duration.
PipelineId
Gets or sets the pipeline identifier.
public string PipelineId { get; }
Property Value
- string
The pipeline id.
SuccessCount
Gets or sets the success count.
public long SuccessCount { get; }
Property Value
- long
The success count.
SuccessRate
Gets or sets the success rate.
public double SuccessRate { get; }
Property Value
- double
The success rate.
TotalDuration
Gets or sets the total duration.
public TimeSpan TotalDuration { get; }
Property Value
- TimeSpan
The total duration.
Methods
UpdateWith(TimeSpan, bool, long)
Updates the with.
public PipelineMetricsSnapshot UpdateWith(TimeSpan duration, bool success, long items)
Parameters
Returns
- PipelineMetricsSnapshot
The result of the operation.