Package io.jenkins.plugins.dorametrics
Class DoraGlobalConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.dorametrics.DoraGlobalConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
Global configuration for the Pipeline DORA Metrics plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) doCheckCfrElitePercent(String value) doCheckCfrHighPercent(String value, String cfrElitePercent, String cfrMediumPercent) doCheckCfrMediumPercent(String value) doCheckDashboardTopN(String value) doCheckDfHighThreshold(String value, String dfEliteThreshold, String dfMediumThreshold) doCheckExcludedJobPattern(String value) doCheckExportIntervalHours(String value) doCheckLtHighSeconds(String value, String ltEliteSeconds, String ltMediumSeconds) doCheckMttrHighSeconds(String value, String mttrEliteSeconds, String mttrMediumSeconds) doCheckRetentionDays(String value) static DoraGlobalConfigurationget()doubledoubledoubleintdoubledoubledoubleintintlonglonglonglonglonglongintAt least one day.booleanbooleanbooleanbooleanvoidRecords that the first import has run.voidsetCfrElitePercent(double v) voidsetCfrHighPercent(double v) voidsetCfrMediumPercent(double v) voidsetDashboardTopN(int v) voidsetDfEliteThreshold(double v) voidsetDfHighThreshold(double v) voidsetDfMediumThreshold(double v) voidvoidsetExportEnabled(boolean v) voidsetExportIntervalHours(int v) voidvoidsetHistoryImportDays(int v) voidsetIgnoreDisabledPipelines(boolean v) voidsetLtEliteSeconds(long v) voidsetLtHighSeconds(long v) voidsetLtMediumSeconds(long v) voidsetMttrEliteSeconds(long v) voidsetMttrHighSeconds(long v) voidsetMttrMediumSeconds(long v) voidvoidvoidvoidvoidsetRetentionDays(int v) voidsetTrackAllBranches(boolean v) booleanshouldTrackJob(String fullJobName) Check if a job should be tracked based on all filter criteria.Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DoraGlobalConfiguration
public DoraGlobalConfiguration()
-
-
Method Details
-
get
-
getExportStorageDescriptors
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
doCheckProductionJobPattern
-
doCheckExcludedJobPattern
-
doCheckProductionBranchPattern
-
doCheckRetentionDays
-
doCheckDashboardTopN
-
doCheckExportIntervalHours
-
doCheckCfrElitePercent
-
doCheckCfrHighPercent
@POST public FormValidation doCheckCfrHighPercent(@QueryParameter String value, @QueryParameter String cfrElitePercent, @QueryParameter String cfrMediumPercent) -
doCheckDfHighThreshold
@POST public FormValidation doCheckDfHighThreshold(@QueryParameter String value, @QueryParameter String dfEliteThreshold, @QueryParameter String dfMediumThreshold) -
doCheckLtHighSeconds
@POST public FormValidation doCheckLtHighSeconds(@QueryParameter String value, @QueryParameter String ltEliteSeconds, @QueryParameter String ltMediumSeconds) -
doCheckMttrHighSeconds
@POST public FormValidation doCheckMttrHighSeconds(@QueryParameter String value, @QueryParameter String mttrEliteSeconds, @QueryParameter String mttrMediumSeconds) -
doCheckCfrMediumPercent
-
shouldTrackJob
Check if a job should be tracked based on all filter criteria. Uses pre-compiled patterns for performance. -
getProductionJobPattern
-
setProductionJobPattern
-
getExcludedJobPattern
-
setExcludedJobPattern
-
getProductionBranchPattern
-
setProductionBranchPattern
-
getProductionFolders
-
setProductionFolders
-
getProductionJobLabel
-
setProductionJobLabel
-
isTrackAllBranches
public boolean isTrackAllBranches() -
setTrackAllBranches
public void setTrackAllBranches(boolean v) -
isIgnoreDisabledPipelines
public boolean isIgnoreDisabledPipelines() -
setIgnoreDisabledPipelines
public void setIgnoreDisabledPipelines(boolean v) -
getRetentionDays
public int getRetentionDays()At least one day. The form already enforces it, but Configuration as Code and a hand-edited config file reach the field without the form, and a retention of zero or less would have the next cleanup delete every stored build. -
setRetentionDays
public void setRetentionDays(int v) -
getHistoryImportDays
public int getHistoryImportDays() -
setHistoryImportDays
public void setHistoryImportDays(int v) -
isHistoryImportDone
public boolean isHistoryImportDone() -
markHistoryImportDone
public void markHistoryImportDone()Records that the first import has run. Deliberately not a setter: a bean setter makes this a configurable property, so an exported JCasC file would carry historyImportDone and a copy of it would stop a fresh instance ever importing. -
getDashboardTopN
public int getDashboardTopN() -
setDashboardTopN
public void setDashboardTopN(int v) -
isExportEnabled
public boolean isExportEnabled() -
setExportEnabled
public void setExportEnabled(boolean v) -
getExportIntervalHours
public int getExportIntervalHours() -
setExportIntervalHours
public void setExportIntervalHours(int v) -
getExportStorage
-
setExportStorage
-
getDfEliteThreshold
public double getDfEliteThreshold() -
setDfEliteThreshold
public void setDfEliteThreshold(double v) -
getDfHighThreshold
public double getDfHighThreshold() -
setDfHighThreshold
public void setDfHighThreshold(double v) -
getDfMediumThreshold
public double getDfMediumThreshold() -
setDfMediumThreshold
public void setDfMediumThreshold(double v) -
getLtEliteSeconds
public long getLtEliteSeconds() -
setLtEliteSeconds
public void setLtEliteSeconds(long v) -
getLtHighSeconds
public long getLtHighSeconds() -
setLtHighSeconds
public void setLtHighSeconds(long v) -
getLtMediumSeconds
public long getLtMediumSeconds() -
setLtMediumSeconds
public void setLtMediumSeconds(long v) -
getMttrEliteSeconds
public long getMttrEliteSeconds() -
setMttrEliteSeconds
public void setMttrEliteSeconds(long v) -
getMttrHighSeconds
public long getMttrHighSeconds() -
setMttrHighSeconds
public void setMttrHighSeconds(long v) -
getMttrMediumSeconds
public long getMttrMediumSeconds() -
setMttrMediumSeconds
public void setMttrMediumSeconds(long v) -
getCfrElitePercent
public double getCfrElitePercent() -
setCfrElitePercent
public void setCfrElitePercent(double v) -
getCfrHighPercent
public double getCfrHighPercent() -
setCfrHighPercent
public void setCfrHighPercent(double v) -
getCfrMediumPercent
public double getCfrMediumPercent() -
setCfrMediumPercent
public void setCfrMediumPercent(double v)
-