java.lang.Object
dk.cloudcreate.essentials.shared.measurement.MeasurementContext

public class MeasurementContext extends Object
Immutable context for a measurement that encapsulates metric name, description, and associated tags.
  • Method Details

    • getMetricName

      public String getMetricName()
      Returns:
      the metric name for this measurement
    • getDescription

      public String getDescription()
      Returns:
      the description of this measurement
    • getTags

      public Map<String,String> getTags()
      Returns:
      an unmodifiable map of tags associated with this measurement
    • builder

      public static MeasurementContext.Builder builder(String metricName)
      Creates a new builder for a measurement context with the specified metric name.
      Parameters:
      metricName - the metric name
      Returns:
      a builder instance