Class SlaReport
java.lang.Object
com.nmontytskyi.monitoring.model.SlaReport
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculates the overall SLA compliance percentage as the fraction of satisfied requirements out of the total.boolean
-
Constructor Details
-
SlaReport
public SlaReport()
-
-
Method Details
-
isSlaBreached
public boolean isSlaBreached()- Returns:
trueif 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
-