Class LoggingMeterOptions
Options for LoggingMeter(IMeter) instances.
Inherited Members
Namespace: Couchbase.Core.Diagnostics.Metrics
Assembly: Couchbase.NetClient.dll
Syntax
public class LoggingMeterOptions
Methods
| Edit this page View SourceEmitInterval(TimeSpan)
The interval after which the aggregated trace information is logged.
Declaration
public LoggingMeterOptions EmitInterval(TimeSpan emitInterval)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | emitInterval |
Returns
| Type | Description |
|---|---|
| LoggingMeterOptions | A LoggingMeterOptions instance for chaining. |
Remarks
Defaults to 600 seconds.
Enabled(bool)
Stops the meter from collecting data.
Declaration
public LoggingMeterOptions Enabled(bool enabled)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | enabled | A bool for stopping or starting collecting. |
Returns
| Type | Description |
|---|---|
| LoggingMeterOptions | A LoggingMeterOptions instance for chaining. |
LoggingMeter(IMeter)
Declaration
public LoggingMeterOptions LoggingMeter(IMeter meter)
Parameters
| Type | Name | Description |
|---|---|---|
| IMeter | meter |
Returns
| Type | Description |
|---|---|
| LoggingMeterOptions |
ReportingEnabled(bool)
Stops the meter from reporting on collected data.
Declaration
public LoggingMeterOptions ReportingEnabled(bool reportingEnabled)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | reportingEnabled | A bool for stopping or starting reporting. |
Returns
| Type | Description |
|---|---|
| LoggingMeterOptions | A LoggingMeterOptions instance for chaining. |