@Extension public static final class DatadogBuildListener.DescriptorImpl extends hudson.model.Descriptor<DatadogBuildListener>
DatadogBuildListener. Used as a singleton.
The class is marked as public so that it can be accessed from views.
See DatadogBuildListener/*.jelly for the actual HTML fragment for the configuration screen.
| Constructor and Description |
|---|
DescriptorImpl()
Runs when the
DatadogBuildListener.DescriptorImpl class is created. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
Indicates if this builder can be used with all kinds of project types.
|
hudson.util.FormValidation |
doTestConnection(String formApiKey)
Tests the
apiKey from the configuration screen, to check its' validity. |
hudson.util.Secret |
getApiKey()
Getter function for the
apiKey global configuration. |
String |
getDisplayName()
Getter function for a human readable plugin name, used in the configuration screen.
|
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
Indicates if this builder can be used with all kinds of project types.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic DescriptorImpl()
DatadogBuildListener.DescriptorImpl class is created.public hudson.util.FormValidation doTestConnection(@QueryParameter(value="apiKey")
String formApiKey)
throws IOException,
javax.servlet.ServletException
apiKey from the configuration screen, to check its' validity.formApiKey - - A String containing the apiKey submitted from the form on the
configuration screen, which will be used to authenticate a request to the
Datadog API.IOException - if there is an input/output exception.javax.servlet.ServletException - if there is a servlet exception.public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
aClass - - An extension of the AbstractProject class representing a specific type of
project.public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<DatadogBuildListener>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<DatadogBuildListener>req - - A StaplerRequest objectformData - - A JSONObject containing the submitted form data from the configuration
screen.FormException - if the formData is invalid.hudson.model.Descriptor.FormExceptionpublic hudson.util.Secret getApiKey()
apiKey global configuration.apiKey global configuration.Copyright © 2004-2015. All Rights Reserved.