TestMeasurement<T> Class
- java.
lang. Object - com.
azure. core. test. utils. metrics. TestMeasurement<T>
- com.
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
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
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