Class DoraApiAction
java.lang.Object
io.jenkins.plugins.dorametrics.ui.DoraApiAction
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction
REST API at /dora-api/ for DORA metrics data.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponseorg.kohsuke.stapler.HttpResponseStarts a build history import.org.kohsuke.stapler.HttpResponseCounters for the running or most recent import.org.kohsuke.stapler.HttpResponsedoOverview(String daysParam, String fromParam, String toParam, String tzParam) org.kohsuke.stapler.HttpResponseorg.kohsuke.stapler.HttpResponseStage rankings for the period, as the dashboard lists them.org.kohsuke.stapler.HttpResponseOne point for every day of the period, in the viewer's time zone whentzis given.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.RootAction
getBadge, isPrimaryAction
-
Constructor Details
-
DoraApiAction
public DoraApiAction()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
doImportHistory
@POST public org.kohsuke.stapler.HttpResponse doImportHistory()Starts a build history import. Administer only, and POST only, because it writes. Returns immediately: the import runs on Jenkins' own executor, and the caller pollsdoImportStatus()for the counters. -
doImportStatus
@GET public org.kohsuke.stapler.HttpResponse doImportStatus()Counters for the running or most recent import. Administer only, and deliberately counters only: it exposes no job names or build data. -
doOverview
-
doPipelines
-
doStages
@GET public org.kohsuke.stapler.HttpResponse doStages(@QueryParameter("days") String daysParam, @QueryParameter("limit") String limitParam, @QueryParameter("from") String fromParam, @QueryParameter("to") String toParam, @QueryParameter("tz") String tzParam) Stage rankings for the period, as the dashboard lists them. -
doTrends
@GET public org.kohsuke.stapler.HttpResponse doTrends(@QueryParameter("days") String daysParam, @QueryParameter("job") String jobName, @QueryParameter("from") String fromParam, @QueryParameter("to") String toParam, @QueryParameter("tz") String tzParam) One point for every day of the period, in the viewer's time zone whentzis given. Besides the build counts and durations, each day carries the four DORA metrics for that day, filtered as the dashboard cards are, so a chart can show what they show. A metric with nothing to measure that day is null. -
doExport
-