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.13.0
Syntax TMetricType GetSessionMetric<TMetricType>(
SessionMetric sessionMetric
)
where TMetricType : class, IDriverMetric
Parameters
- sessionMetric
- Type: Cassandra.MetricsSessionMetric
Type Parameters
- TMetricType
Return Value
Type:
TMetricTypeExceptions Exception | Condition |
---|
ArgumentException | This exception is thrown if the metric object can not be cast to TMetricType. |
See Also