Package io.jenkins.plugins.swarmcloud
Class SwarmDashboard
java.lang.Object
hudson.model.ManagementLink
io.jenkins.plugins.swarmcloud.SwarmDashboard
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction
Dashboard for monitoring Docker Swarm agents.
Accessible from Jenkins Management page.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.CategoryNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.ManagementLink
LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoApi(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String cloud) API endpoint to get cluster status as JSON.org.kohsuke.stapler.HttpResponseAPI endpoint to refresh metrics for a cloud.org.kohsuke.stapler.HttpResponsedoRemoveService(String cloud, String serviceId) API endpoint to remove a service.Gets all cluster statuses.getClusterStatus(String cloudName) Gets the status for a specific cloud.longGets the last update timestamp.Gets all Swarm clouds.Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiresConfirmation, getRequiresPOSTMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.RootAction
getBadge, isPrimaryAction
-
Constructor Details
-
SwarmDashboard
public SwarmDashboard()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classManagementLink
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction- Specified by:
getUrlNamein classManagementLink
-
getDescription
- Overrides:
getDescriptionin classManagementLink
-
getCategory
- Overrides:
getCategoryin classManagementLink
-
getRequiredPermission
- Overrides:
getRequiredPermissionin classManagementLink
-
getSwarmClouds
Gets all Swarm clouds. -
getClusterStatus
Gets the status for a specific cloud. -
getAllStatuses
Gets all cluster statuses. -
getLastUpdate
public long getLastUpdate()Gets the last update timestamp. -
doApi
@GET public void doApi(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String cloud) throws IOException API endpoint to get cluster status as JSON.- Throws:
IOException
-
doRefresh
API endpoint to refresh metrics for a cloud. -
doRemoveService
@POST public org.kohsuke.stapler.HttpResponse doRemoveService(@QueryParameter String cloud, @QueryParameter String serviceId) API endpoint to remove a service.
-