Class MetricDefinition
java.lang.Object
org.jenkinsci.plugins.vmanager.charts.model.MetricDefinition
- All Implemented Interfaces:
Describable<MetricDefinition>
Defines one custom metric: which vManager entity level to query and the attribute name.
attributeName stores the value in the format "Title (id)"
(e.g. "Expression Covered (CoverageAttributes.EXPRESSION_HIT)").
This keeps the combobox in sync on reopen (saved value = displayed value) while
preserving both pieces of information. Use getAttributeTitle() for the
chart legend and getAttributeId() for the vManager REST fetch.
Plain values without parentheses (manually typed or legacy) are treated as-is.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExtracts the machine-readable id from a"Title (id)"value.Raw stored value, e.g.Extracts the human-friendly title from a"Title (id)"value.Label shown on the chart legend: nickname if set, else attribute title.getName()Chart-series legend label: the attribute title.Per-chart unique key for this metric's series in the build action map.voidsetCoverageHierarchy(String coverageHierarchy) voidsetNickname(String nickname) voidsetRefinementFiles(List<RefinementFile> refinementFiles) voidsetVplanRefinementFiles(List<RefinementFile> vplanRefinementFiles) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
MetricDefinition
-
-
Method Details
-
getEntityType
-
getAttributeName
Raw stored value, e.g."Expression Covered (CoverageAttributes.EXPRESSION_HIT)". -
getAttributeTitle
Extracts the human-friendly title from a"Title (id)"value. Returns the whole string if no(id)suffix is present. -
getAttributeId
Extracts the machine-readable id from a"Title (id)"value. Returns the whole string if no(id)suffix is present. -
getChartType
-
getHierarchyPath
-
getVerificationScope
-
getCoverageHierarchy
-
setCoverageHierarchy
-
getRefinementFiles
-
setRefinementFiles
-
getVplanRefinementFiles
-
setVplanRefinementFiles
-
getNickname
-
setNickname
-
getDisplayName
Label shown on the chart legend: nickname if set, else attribute title. -
getSeriesKey
Per-chart unique key for this metric's series in the build action map. Uses the nickname when set (forbidden to repeat within a chart), else the attribute name. -
getName
Chart-series legend label: the attribute title.
-