Class FolderHealthMetricDescriptor
java.lang.Object
hudson.model.Descriptor<FolderHealthMetric>
com.cloudbees.hudson.plugins.folder.health.FolderHealthMetricDescriptor
- Direct Known Subclasses:
NamedChildHealthMetric.DescriptorImpl,WorstChildHealthMetric.DescriptorImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Optionally create a default health metric to be used in new folders.booleanisApplicable(Class<? extends AbstractFolder> containerType) Returns true if thisFolderHealthMetrictype is applicable to the given folder type.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, 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
-
FolderHealthMetricDescriptor
public FolderHealthMetricDescriptor()
-
-
Method Details
-
isApplicable
Returns true if thisFolderHealthMetrictype is applicable to the given folder type.- Parameters:
containerType- the container type.- Returns:
trueif this metric is applicable.
-
createDefault
Optionally create a default health metric to be used in new folders.- Returns:
- a default configuration of the associated metric, or null to not include by default
- Since:
- 4.0
-
all
-