Table of Contents

Class PerformanceDiagnosticsOptions

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

Configures performance diagnostics and slow operation detection.

public sealed class PerformanceDiagnosticsOptions
Inheritance
PerformanceDiagnosticsOptions
Inherited Members

Properties

AnalyzeQueryPerformance

Gets a value indicating whether to analyze query performance.

public bool AnalyzeQueryPerformance { get; init; }

Property Value

bool

A bool indicating whether to analyze query execution statistics. Defaults to false .

Enabled

Gets a value indicating whether performance diagnostics are enabled.

public bool Enabled { get; init; }

Property Value

bool

A bool indicating whether performance monitoring is active. Defaults to true .

SamplingRate

Gets the sampling rate for performance analysis (0.0 to 1.0).

public double SamplingRate { get; init; }

Property Value

double

A double representing the sampling percentage. Defaults to 0.01 (1%).

SlowOperationThreshold

Gets the threshold for slow operation detection.

public TimeSpan SlowOperationThreshold { get; init; }

Property Value

TimeSpan

A TimeSpan representing the slow operation threshold. Defaults to 5 seconds.

TrackMemoryUsage

Gets a value indicating whether to track memory usage during operations.

public bool TrackMemoryUsage { get; init; }

Property Value

bool

A bool indicating whether to monitor memory usage. Defaults to false .