Class MetricDefinition.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<MetricDefinition>
org.jenkinsci.plugins.vmanager.charts.model.MetricDefinition.DescriptorImpl
- Enclosing class:
MetricDefinition
-
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 TypeMethodDescriptiondoCheckAttributeName(String value, String entityType, String serverUrl, String credentialsId, Item item) Validates the Attribute Name field.doFillAttributeNameItems(String entityType, String serverUrl, String credentialsId, Item item) Populates the Attribute combobox by calling the vManager REST API and listing the human-friendly titles of every numeric attribute.doFillChartTypeItems(Item item) doFillEntityTypeItems(Item item) 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, 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
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<MetricDefinition>
-
doFillEntityTypeItems
-
doCheckAttributeName
@POST public FormValidation doCheckAttributeName(@QueryParameter String value, @QueryParameter String entityType, @RelativePath("../..") @QueryParameter String serverUrl, @RelativePath("../..") @QueryParameter String credentialsId, @AncestorInPath Item item) Validates the Attribute Name field. In addition to the required-field check, this also pings the vManager REST endpoint for the selected entity type so that any server-side error (auth, 404, connection refused, TLS, etc.) is surfaced inline under the field in red. Triggered both on edits to the field itself and — viacheckDependsOnin the Jelly — wheneverentityType,serverUrlorcredentialsIdchange. -
doFillChartTypeItems
-
doFillAttributeNameItems
@POST public ComboBoxModel doFillAttributeNameItems(@QueryParameter String entityType, @RelativePath("../..") @QueryParameter String serverUrl, @RelativePath("../..") @QueryParameter String credentialsId, @AncestorInPath Item item) Populates the Attribute combobox by calling the vManager REST API and listing the human-friendly titles of every numeric attribute. The combobox provides built-in type-ahead filtering, and the title that the user picks is what gets stored inattributeName— so it matches back on reopen and is automatically used as the chart legend label.URL patterns:
- COVERAGE_LEVEL:
{serverUrl}/rest/$schema/response?action=list-metrics-tree-sub-entities&component=tracking-configuration&extended=true - VPLAN_LEVEL:
{serverUrl}/rest/$schema/response?action=list-vplan-tree-sub-entities&component=tracking-configuration&extended=true - SESSION_LEVEL: not supported yet — empty list
- COVERAGE_LEVEL:
-