TestMeter Class
- java.
lang. Object - com.
azure. core. test. utils. metrics. TestMeter
- com.
Implements
public class TestMeter
implements Meter
Test meter implementation.
Constructor Summary
Constructor | Description |
---|---|
TestMeter() |
Creates test meter. |
TestMeter(boolean isEnabled) |
Creates test meter |
Method Summary
Modifier and Type | Method and Description |
---|---|
void | close() |
Telemetry |
createAttributes(Map<String,Object> attributeMap) |
Double |
createDoubleHistogram(String name, String description, String unit) |
Long |
createLongCounter(String name, String description, String unit) |
Long |
createLongGauge(String name, String description, String unit) |
Long |
createLongUpDownCounter(String name, String description, String unit) |
Map<String,Test |
getCounters()
Gets counters created with this meter. |
Map<String,Test |
getGauges()
Gets gauges created with this meter. |
Map<String,Test |
getHistograms()
Gets histograms created with this meter. |
Map<String,Test |
getUpDownCounters()
Gets up-down counters created with this meter. |
boolean | isEnabled() |
Methods inherited from java.lang.Object
Constructor Details
TestMeter
public TestMeter()
Creates test meter.
TestMeter
public TestMeter(boolean isEnabled)
Creates test meter
Parameters:
Method Details
close
public void close()
createAttributes
public TelemetryAttributes createAttributes(Map
Parameters:
createDoubleHistogram
public DoubleHistogram createDoubleHistogram(String name, String description, String unit)
Parameters:
createLongCounter
public LongCounter createLongCounter(String name, String description, String unit)
Parameters:
createLongGauge
public LongGauge createLongGauge(String name, String description, String unit)
Parameters:
createLongUpDownCounter
public LongCounter createLongUpDownCounter(String name, String description, String unit)
Parameters:
getCounters
public Map
Gets counters created with this meter.
Returns:
getGauges
public Map
Gets gauges created with this meter.
Returns:
getHistograms
public Map
Gets histograms created with this meter.
Returns:
getUpDownCounters
public Map
Gets up-down counters created with this meter.
Returns:
isEnabled
public boolean isEnabled()
Applies to
Azure SDK for Java