Class ThresholdOptions
Inherited Members
Namespace: Couchbase.Core.Diagnostics.Tracing.ThresholdTracing
Assembly: Couchbase.NetClient.dll
Syntax
public class ThresholdOptions
Fields
| Edit this page View SourceDefaultSampleSize
Declaration
public static readonly int DefaultSampleSize
Field Value
Type | Description |
---|---|
int |
Properties
| Edit this page View SourceEmitInterval
Declaration
public TimeSpan EmitInterval { get; set; }
Property Value
Type | Description |
---|---|
Time |
Enabled
Enables threshold tracing. Defaults to enabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
ThresholdListener
Provides the means of registering a custom Trace
Declaration
public TraceListener ThresholdListener { get; set; }
Property Value
Type | Description |
---|---|
Trace |
Remarks
It is suggested that the default Threshold
Methods
| Edit this page View SourceGetServiceThresholds()
Declaration
public IReadOnlyDictionary<string, TimeSpan> GetServiceThresholds()
Returns
Type | Description |
---|---|
IRead |
WithAnalyticsThreshold(TimeSpan)
The threshold over which the request is taken into account for the search service
Declaration
public ThresholdOptions WithAnalyticsThreshold(TimeSpan analyticsThreshold)
Parameters
Returns
Type | Description |
---|---|
Threshold |
A Threshold |
Remarks
The default is 1 second.
WithEmitInterval(TimeSpan)
The interval after which the aggregated trace information is logged.
Declaration
public ThresholdOptions WithEmitInterval(TimeSpan emitInterval)
Parameters
Returns
Type | Description |
---|---|
Threshold |
A Threshold |
Remarks
The default is 10 seconds.
WithKvThreshold(TimeSpan)
The interval after which the aggregated trace information is logged.
Declaration
public ThresholdOptions WithKvThreshold(TimeSpan kvThreshold)
Parameters
Returns
Type | Description |
---|---|
Threshold |
A Threshold |
Remarks
The default is 500 Milliseconds.
WithQueryThreshold(TimeSpan)
The threshold over which the request is taken into account for the query service
Declaration
public ThresholdOptions WithQueryThreshold(TimeSpan queryThreshold)
Parameters
Returns
Type | Description |
---|---|
Threshold |
A Threshold |
Remarks
The default is 1 second.
WithSampleSize(uint)
How many entries to sample per service in each emit interval
Declaration
public ThresholdOptions WithSampleSize(uint sampleSize)
Parameters
Returns
Type | Description |
---|---|
Threshold |
A Threshold |
Remarks
The default is 10 samples.
WithSearchThreshold(TimeSpan)
The threshold over which the request is taken into account for the search service
Declaration
public ThresholdOptions WithSearchThreshold(TimeSpan searchThreshold)
Parameters
Returns
Type | Description |
---|---|
Threshold |
A Threshold |
Remarks
The default is 1 second.
WithViewsThreshold(TimeSpan)
The threshold over which the request is taken into account for the views service
Declaration
public ThresholdOptions WithViewsThreshold(TimeSpan viewsThreshold)
Parameters
Returns
Type | Description |
---|---|
Threshold |
A Threshold |
Remarks
The default is 1 second.