Class FolderHealthMetricDescriptor
java.lang.Object
hudson.model.Descriptor<FolderHealthMetric>
com.cloudbees.hudson.plugins.folder.health.FolderHealthMetricDescriptor
- Direct Known Subclasses:
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
-
Method Summary
Modifier and TypeMethodDescriptionall()
Optionally create a default health metric to be used in new folders.boolean
isApplicable
(Class<? extends AbstractFolder> containerType) Returns true if thisFolderHealthMetric
type is applicable to the given folder type.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
FolderHealthMetricDescriptor
public FolderHealthMetricDescriptor()
-
-
Method Details
-
isApplicable
Returns true if thisFolderHealthMetric
type is applicable to the given folder type.- Parameters:
containerType
- the container type.- Returns:
true
if 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
-