Class BusinessMetric

java.lang.Object
com.nmontytskyi.monitoring.model.BusinessMetric

public class BusinessMetric extends Object
A business metric recorded for a microservice at a specific point in time.

Collected via the TrackBusinessMetric annotation and sent to the monitoring-server by the starter. Allows correlating business activity with technical metrics: for example, seeing how a CPU spike affects the number of processed orders.

Example: name="orders.created", value=1.0, unit="count" is recorded on each successful invocation of a method annotated with @TrackBusinessMetric.

  • Constructor Details

    • BusinessMetric

      public BusinessMetric()