TestGauge.Subscription Class
- java.
lang. Object - com.
azure. core. test. utils. metrics. TestGauge. Subscription
- com.
Implements
public class TestGauge.Subscription
implements AutoCloseable
Test subscription, recording test measurements.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void | close() |
|
List<Test |
getMeasurements()
Gets all measurements reported with this subscription. |
| void |
measure()
Records value. |
Methods inherited from java.lang.Object
Method Details
close
public void close()
getMeasurements
public List<TestMeasurement<Long>> getMeasurements()
Gets all measurements reported with this subscription.
Returns:
measure
public void measure()
Records value. Tests should call into this method explicitly.