Class DoraCalculator
java.lang.Object
io.jenkins.plugins.dorametrics.dora.DoraCalculator
Calculates all four DORA metrics from stored build data.
Uses optimized SQL aggregates where possible.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Constructor Summary
ConstructorsConstructorDescriptionDoraCalculator(MetricsStore store, DoraGlobalConfiguration config) Constructor for testing with injected dependencies. -
Method Summary
Modifier and TypeMethodDescriptionchangeFailureRate(long fromMs, long toMs, String jobPattern) Change Failure Rate: % of deploys that fail.deploymentFrequency(long fromMs, long toMs, String jobPattern) Deployment Frequency: successful deploys per day.leadTimeForChanges(long fromMs, long toMs, String jobPattern) Lead Time for Changes: avg time from commit to deploy.meanTimeToRestore(long fromMs, long toMs, String jobPattern) MTTR: avg time from failure to next success per job.
-
Constructor Details
-
DoraCalculator
public DoraCalculator() -
DoraCalculator
Constructor for testing with injected dependencies.
-
-
Method Details
-
deploymentFrequency
Deployment Frequency: successful deploys per day. -
leadTimeForChanges
Lead Time for Changes: avg time from commit to deploy. -
meanTimeToRestore
MTTR: avg time from failure to next success per job. Still uses row-level scan (no simple SQL aggregate for this). -
changeFailureRate
Change Failure Rate: % of deploys that fail.
-