Package org.jenkinsci.plugins.cloudstats
Class CloudStatistics
java.lang.Object
hudson.model.ManagementLink
org.jenkinsci.plugins.cloudstats.CloudStatistics
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,Saveable
,org.kohsuke.stapler.StaplerProxy
@Extension
public class CloudStatistics
extends ManagementLink
implements Saveable, org.kohsuke.stapler.StaplerProxy
Statistics of provisioning activities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
Listen to ongoing provisioning activities.static class
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
The number of completed records to be stored.Fields inherited from class hudson.model.ManagementLink
LIST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attach
(ProvisioningActivity activity, ProvisioningActivity.Phase phase, PhaseExecutionAttachment attachment) Attach information to activity's phase execution.static CloudStatistics
get()
Get the singleton instance.getActivity
(String hashString) Get "active" activity, missing activity will be logged.getActivityFor
(TrackedItem item) Name of the category for this management link.getIndex()
Get activities that was not completed yet.Get activity that is suspected to be completed already.getUrl
(ProvisioningActivity activity, PhaseExecution phaseExecution, PhaseExecutionAttachment attachment) void
save()
Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategory, getRequiresConfirmation, getRequiresPOST
-
Field Details
-
ARCHIVE_RECORDS
public static int ARCHIVE_RECORDSThe number of completed records to be stored.
-
-
Constructor Details
-
CloudStatistics
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public CloudStatistics()
-
-
Method Details
-
get
Get the singleton instance. -
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
-
getRequiredPermission
- Overrides:
getRequiredPermission
in classManagementLink
-
getTarget
- Specified by:
getTarget
in interfaceorg.kohsuke.stapler.StaplerProxy
-
getNotCompletedActivities
Get activities that was not completed yet. -
getUrlName
- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
-
getDescription
- Overrides:
getDescription
in classManagementLink
-
getCategoryName
Name of the category for this management link. Exists so that plugins with core dependency pre-dating the version when this was introduced can define a category.TODO when the core version is >2.226 change this to override
getCategory()
instead- Overrides:
getCategoryName
in classManagementLink
- Returns:
- name of the desired category, one of the enum values of Category, e.g.
STATUS
. - Since:
- 2.226 of Jenkins core
-
getActivities
-
getPotentiallyCompletedActivityFor
@CheckForNull public ProvisioningActivity getPotentiallyCompletedActivityFor(ProvisioningActivity.Id id) Get activity that is suspected to be completed already.- Returns:
- The activity or null if rotated already.
-
getActivityFor
Get "active" activity, missing activity will be logged. -
getActivityFor
-
getIndex
-
getActivity
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ProvisioningActivity getActivity(@NonNull String hashString) -
getUrl
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public String getUrl(@NonNull ProvisioningActivity activity, @NonNull PhaseExecution phaseExecution, @NonNull PhaseExecutionAttachment attachment) -
attach
public void attach(@NonNull ProvisioningActivity activity, @NonNull ProvisioningActivity.Phase phase, @NonNull PhaseExecutionAttachment attachment) Attach information to activity's phase execution. -
save
- Specified by:
save
in interfaceSaveable
- Throws:
IOException
-