Class CloudAEyeGlobalKeyConfiguration

java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.cloudaeye.CloudAEyeGlobalKeyConfiguration
All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension public class CloudAEyeGlobalKeyConfiguration extends GlobalConfiguration
Handles the global key configuration for the plugin
  • Constructor Details

    • CloudAEyeGlobalKeyConfiguration

      public CloudAEyeGlobalKeyConfiguration()
  • Method Details

    • get

      public static CloudAEyeGlobalKeyConfiguration get()
      Returns:
      the singleton instance
    • getTenantKey

      public Secret getTenantKey()
    • setTenantKey

      @DataBoundSetter public void setTenantKey(Secret tenantKey)
    • getToken

      public Secret getToken()
    • setToken

      @DataBoundSetter public void setToken(Secret token)
    • doCheckTenantKey

      public FormValidation doCheckTenantKey(@QueryParameter String tenantKey)
      Validates the tenantKey
      Parameters:
      tenantKey - CloudAEye webhook tenantKey
      Returns:
      Valid form
    • doCheckToken

      public FormValidation doCheckToken(@QueryParameter String token)
    • doTestConnection

      @POST public FormValidation doTestConnection(@QueryParameter("tenantKey") Secret tenantKey, @QueryParameter("token") Secret token) throws IOException, javax.servlet.ServletException
      Makes a dynamic ping to test the connectivity with the CloudAEye webhook
      Parameters:
      tenantKey - Unique key assigned to the tenant
      token - Secret token
      Returns:
      A valid/invalid form response
      Throws:
      IOException
      javax.servlet.ServletException