Class MeasurementContext
java.lang.Object
dk.cloudcreate.essentials.shared.measurement.MeasurementContext
Immutable context for a measurement that encapsulates metric name, description, and associated tags.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating instances ofMeasurementContext. -
Method Summary
Modifier and TypeMethodDescriptionstatic MeasurementContext.BuilderCreates a new builder for a measurement context with the specified metric name.getTags()
-
Method Details
-
getMetricName
- Returns:
- the metric name for this measurement
-
getDescription
- Returns:
- the description of this measurement
-
getTags
- Returns:
- an unmodifiable map of tags associated with this measurement
-
builder
Creates a new builder for a measurement context with the specified metric name.- Parameters:
metricName- the metric name- Returns:
- a builder instance
-