Click or drag to resize

IDriverMetricsGetSessionMetricTMetricType Method

Gets a specific session metric. TMetricType can be any type in the inheritance tree of the metric object returned by the IDriverMetricsProvider.

Namespace:  Cassandra.Metrics
Assembly:  Cassandra (in Cassandra.dll) Version: 3.12.0
Syntax
C#
TMetricType GetSessionMetric<TMetricType>(
	SessionMetric sessionMetric
)
where TMetricType : class, IDriverMetric

Parameters

sessionMetric
Type: Cassandra.MetricsSessionMetric

Type Parameters

TMetricType

Return Value

Type: TMetricType
Exceptions
ExceptionCondition
ArgumentExceptionThis exception is thrown if the metric object can not be cast to TMetricType.
See Also