Interface IDriverMetricsProvider
Provides metric implementations.
Assembly: Dse.dll
Syntax
public interface IDriverMetricsProvider
Methods
Counter(String, IMetric)
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 System.Object.Equals(System.Object) to test if metric
is a particular NodeMetric or SessionMetric.
Declaration
IDriverCounter Counter(string bucket, IMetric metric)
Parameters
Type |
Name |
Description |
System.String |
bucket |
|
IMetric |
metric |
|
Returns
Gauge(String, IMetric, Func<Nullable<Double>>)
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 System.Object.Equals(System.Object) to test if metric
is a particular NodeMetric or SessionMetric.
Declaration
IDriverGauge Gauge(string bucket, IMetric metric, Func<double?> valueProvider)
Parameters
Type |
Name |
Description |
System.String |
bucket |
|
IMetric |
metric |
|
System.Func<System.Nullable<System.Double>> |
valueProvider |
|
Returns
Meter(String, IMetric)
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 System.Object.Equals(System.Object) to test if metric
is a particular NodeMetric or SessionMetric.
Declaration
IDriverMeter Meter(string bucket, IMetric metric)
Parameters
Type |
Name |
Description |
System.String |
bucket |
|
IMetric |
metric |
|
Returns
ShutdownMetricsBucket(String)
Shutdowns/Disposes metrics created with the provided bucket
. This is especially useful to stop gauges which are supposed to run on a loop.
Declaration
void ShutdownMetricsBucket(string bucket)
Parameters
Type |
Name |
Description |
System.String |
bucket |
|
Timer(String, IMetric)
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 System.Object.Equals(System.Object) to test if metric
is a particular NodeMetric or SessionMetric.
Declaration
IDriverTimer Timer(string bucket, IMetric metric)
Parameters
Type |
Name |
Description |
System.String |
bucket |
|
IMetric |
metric |
|
Returns