Click or drag to resize

IDriverMetricsGetNodeMetricTMetricType Method

Gets a specific node metric of a specific host. 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 GetNodeMetric<TMetricType>(
	Host host,
	NodeMetric nodeMetric
)
where TMetricType : class, IDriverMetric

Parameters

host
Type: CassandraHost
nodeMetric
Type: Cassandra.MetricsNodeMetric

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