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
Gets all subscriptions requested from this instrument.
Returns:
list of all measurements
isEnabled
public boolean isEnabled()
registerCallback
public AutoCloseable registerCallback(Supplier
Parameters:
valueSupplier
attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java