Table of Contents

Class ElasticsearchPerformanceDiagnostics.PerformanceMetrics

Namespace
Excalibur.Data.ElasticSearch.Monitoring
Assembly
Excalibur.Data.ElasticSearch.dll

Represents performance metrics for an operation type.

public sealed class ElasticsearchPerformanceDiagnostics.PerformanceMetrics
Inheritance
ElasticsearchPerformanceDiagnostics.PerformanceMetrics
Inherited Members

Remarks

Initializes a new instance of the ElasticsearchPerformanceDiagnostics.PerformanceMetrics class.

Constructors

PerformanceMetrics(string, TimeSpan, bool)

Represents performance metrics for an operation type.

public PerformanceMetrics(string operationType, TimeSpan initialDuration, bool initialSuccess)

Parameters

operationType string

The type of operation.

initialDuration TimeSpan

The initial operation duration.

initialSuccess bool

Whether the initial operation was successful.

Remarks

Initializes a new instance of the ElasticsearchPerformanceDiagnostics.PerformanceMetrics class.

Properties

AverageDurationMs

Gets the average operation duration in milliseconds.

public double AverageDurationMs { get; }

Property Value

double

The average operation duration in milliseconds.

LastUpdated

Gets the timestamp when these metrics were last updated.

public DateTimeOffset LastUpdated { get; }

Property Value

DateTimeOffset

The timestamp when these metrics were last updated.

MaxDurationMs

Gets the maximum operation duration in milliseconds.

public double MaxDurationMs { get; }

Property Value

double

The maximum operation duration in milliseconds.

MinDurationMs

Gets the minimum operation duration in milliseconds.

public double MinDurationMs { get; }

Property Value

double

The minimum operation duration in milliseconds.

OperationType

Gets the operation type.

public string OperationType { get; }

Property Value

string

The operation type.

SuccessRate

Gets the success rate as a percentage.

public double SuccessRate { get; }

Property Value

double

The success rate as a percentage.

SuccessfulOperations

Gets the number of successful operations.

public long SuccessfulOperations { get; }

Property Value

long

The number of successful operations.

TotalOperations

Gets the total number of operations.

public long TotalOperations { get; }

Property Value

long

The total number of operations.