Class StageMetricsSnapshot
- Namespace
- DotCompute.Core.Telemetry
- Assembly
- DotCompute.Core.dll
Thread-safe snapshot of stage metrics using lock-free operations.
public sealed class StageMetricsSnapshot
- Inheritance
-
StageMetricsSnapshot
- Inherited Members
Constructors
StageMetricsSnapshot(string, string, long, long, TimeSpan, TimeSpan, TimeSpan, long)
Thread-safe snapshot of stage metrics using lock-free operations.
public StageMetricsSnapshot(string pipelineId, string stageId, long executionCount, long successCount, TimeSpan totalDuration, TimeSpan minDuration, TimeSpan maxDuration, long memoryUsed)
Parameters
pipelineIdstringstageIdstringexecutionCountlongsuccessCountlongtotalDurationTimeSpanminDurationTimeSpanmaxDurationTimeSpanmemoryUsedlong
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.
MaxDuration
Gets or sets the max duration.
public TimeSpan MaxDuration { get; }
Property Value
- TimeSpan
The max duration.
MemoryUsed
Gets or sets the memory used.
public long MemoryUsed { get; }
Property Value
- long
The memory used.
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.
StageId
Gets or sets the stage identifier.
public string StageId { get; }
Property Value
- string
The stage 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 StageMetricsSnapshot UpdateWith(TimeSpan duration, bool success, long memory)
Parameters
Returns
- StageMetricsSnapshot
The result of the operation.