TestGauge Class
- java.
lang. Object - com.
azure. core. test. utils. metrics. TestGauge
- com.
Implements
public class TestGauge
implements LongGauge
Test implementation of gauge allowing to verify what measurements were reported.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<Subscription> |
getSubscriptions()
Gets all subscriptions requested from this instrument. |
| boolean | isEnabled() |
|
Auto |
registerCallback(Supplier<Long> valueSupplier, TelemetryAttributes attributes) |
Methods inherited from java.lang.Object
Method Details
getSubscriptions
public List<TestGauge.Subscription> getSubscriptions()
Gets all subscriptions requested from this instrument.
Returns:
isEnabled
public boolean isEnabled()
registerCallback
public AutoCloseable registerCallback(Supplier<Long> valueSupplier, TelemetryAttributes attributes)
Parameters: