Click or drag to resize

IDriverMetricsProvider Interface

Provides metric implementations.

Namespace:  Dse.Metrics.Abstractions
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public interface IDriverMetricsProvider

The IDriverMetricsProvider type exposes the following members.

Methods
  NameDescription
Public methodCounter
Creates a counter metric. bucket will contain the prefix configured with SetBucketPrefix(String), session name and node's address. Node's address will only be in the bucket name when metric is a NodeMetric. Implementations can call Equals(Object) to test if metric is a particular NodeMetric or SessionMetric.
Public methodGauge
Creates a gauge metric. bucket will contain the prefix configured with SetBucketPrefix(String), session name and node's address. Node's address will only be in the bucket name when metric is a NodeMetric. Implementations can call Equals(Object) to test if metric is a particular NodeMetric or SessionMetric.
Public methodMeter
Creates a meter metric. bucket will contain the prefix configured with SetBucketPrefix(String), session name and node's address. Node's address will only be in the bucket name when metric is a NodeMetric. Implementations can call Equals(Object) to test if metric is a particular NodeMetric or SessionMetric.
Public methodShutdownMetricsBucket
Shutdowns/Disposes metrics created with the provided bucket. This is especially useful to stop gauges which are supposed to run on a loop.
Public methodTimer
Creates a timer metric. bucket will contain the prefix configured with SetBucketPrefix(String), session name and node's address. Node's address will only be in the bucket name when metric is a NodeMetric. Implementations can call Equals(Object) to test if metric is a particular NodeMetric or SessionMetric.
Top
See Also