azure-docs-sdk-java/docs-ref-autogen/com.azure.core.test.utils.m...

54 строки
3.6 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.test.utils.metrics.TestGauge.Subscription"
fullName: "com.azure.core.test.utils.metrics.TestGauge.Subscription"
name: "TestGauge.Subscription"
nameWithType: "TestGauge.Subscription"
summary: "Test subscription, recording test measurements."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public class **TestGauge.Subscription**</br> implements <a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html\">AutoCloseable</a>"
methods:
- uid: "com.azure.core.test.utils.metrics.TestGauge.Subscription.close()"
fullName: "com.azure.core.test.utils.metrics.TestGauge.Subscription.close()"
name: "close()"
nameWithType: "TestGauge.Subscription.close()"
syntax: "public void close()"
- uid: "com.azure.core.test.utils.metrics.TestGauge.Subscription.getMeasurements()"
fullName: "com.azure.core.test.utils.metrics.TestGauge.Subscription.getMeasurements()"
name: "getMeasurements()"
nameWithType: "TestGauge.Subscription.getMeasurements()"
summary: "Gets all measurements reported with this subscription."
syntax: "public List<TestMeasurement<Long>> getMeasurements()"
desc: "Gets all measurements reported with this subscription."
returns:
description: "list of all measurements"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.core.test.utils.metrics.TestMeasurement?alt=com.azure.core.test.utils.metrics.TestMeasurement&text=TestMeasurement\" data-throw-if-not-resolved=\"False\" />&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html\">Long</a>&gt;&gt;"
- uid: "com.azure.core.test.utils.metrics.TestGauge.Subscription.measure()"
fullName: "com.azure.core.test.utils.metrics.TestGauge.Subscription.measure()"
name: "measure()"
nameWithType: "TestGauge.Subscription.measure()"
summary: "Records value."
syntax: "public void measure()"
desc: "Records value. Tests should call into this method explicitly."
type: "class"
desc: "Test subscription, recording test measurements."
implements:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html\">AutoCloseable</a>"
metadata: {}
package: "com.azure.core.test.utils.metrics"
artifact: com.azure:azure-core-test:1.26.2