Language

HttpConnectionMetricsImpl.GetMetric(String) Method

Definition

Gets the metric associated with a name, including custom metrics and the standard connection metrics.

[Android.Runtime.Register("getMetric", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGetMetric_Ljava_lang_String_Handler")]
public virtual Java.Lang.Object? GetMetric(string? metricName);
[<Android.Runtime.Register("getMetric", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGetMetric_Ljava_lang_String_Handler")>]
abstract member GetMetric : string -> Java.Lang.Object
override this.GetMetric : string -> Java.Lang.Object

Parameters

metricName
String

The name of the metric.

Returns

The non-null value set for the name, if any; otherwise, the standard metric value, or null if the name is not a standard metric or the requested byte metric has no transport metric.

Implements

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to