TestMeasurement<T> Class

  • java.lang.Object
    • com.azure.core.test.utils.metrics.TestMeasurement<T>

Type Parameters

T

public class TestMeasurement

Test implementation of metric measurements allowing to verify what measurements were reported.

Method Summary

Modifier and Type Method and Description
Map<String,Object> getAttributes()

Returns attributes this measurement was reported with.

Context getContext()

Returns context this measurement was reported with.

T getValue()

Returns value this measurement was reported with.

Methods inherited from java.lang.Object

Method Details

getAttributes

public Map getAttributes()

Returns attributes this measurement was reported with.

Returns:

attribute map.

getContext

public Context getContext()

Returns context this measurement was reported with.

Returns:

context.

getValue

public T getValue()

Returns value this measurement was reported with.

Returns:

reported value.

Applies to