TestGauge Class

  • java.lang.Object
    • com.azure.core.test.utils.metrics.TestGauge

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()
AutoCloseable registerCallback(Supplier<Long> valueSupplier, TelemetryAttributes attributes)

Methods inherited from java.lang.Object

Method Details

getSubscriptions

public List getSubscriptions()

Gets all subscriptions requested from this instrument.

Returns:

list of all measurements

isEnabled

public boolean isEnabled()

registerCallback

public AutoCloseable registerCallback(Supplier valueSupplier, TelemetryAttributes attributes)

Parameters:

valueSupplier
attributes

Applies to