Click or drag to resize

IDriverMetricsProviderCounter Method

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.

Namespace:  Cassandra.Metrics.Abstractions
Assembly:  Cassandra (in Cassandra.dll) Version: 3.13.0
Syntax
C#
IDriverCounter Counter(
	string bucket,
	IMetric metric
)

Parameters

bucket
Type: SystemString
metric
Type: Cassandra.MetricsIMetric

Return Value

Type: IDriverCounter
See Also