Class SlaReport

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

public class SlaReport extends Object
SLA compliance report for a microservice over a defined time period.

Computed by SlaEvaluationService based on stored MetricSnapshot records within the specified time range. Contains both actual metric values and percentiles, as well as the results of comparison against SLA thresholds.

  • Constructor Details

    • SlaReport

      public SlaReport()
  • Method Details

    • isSlaBreached

      public boolean isSlaBreached()
      Returns:
      true if at least one SLA requirement is violated
    • getCompliancePercent

      public double getCompliancePercent()
      Calculates the overall SLA compliance percentage as the fraction of satisfied requirements out of the total.
      Returns:
      percentage from 0.0 to 100.0