Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class LoggingMeterOptions

Options for LoggingMeter(IMeter) instances.

Inheritance
object
LoggingMeterOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Core.Diagnostics.Metrics
Assembly: Couchbase.NetClient.dll
Syntax
public class LoggingMeterOptions

Constructors

View Source

LoggingMeterOptions()

Declaration
public LoggingMeterOptions()

Methods

View Source

EmitInterval(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.

View Source

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.

View Source

LoggingMeter(IMeter)

Declaration
public LoggingMeterOptions LoggingMeter(IMeter meter)
Parameters
Type Name Description
IMeter meter
Returns
Type Description
LoggingMeterOptions
View Source

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.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.