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 classstatic classstatic classListen to ongoing provisioning activities.static classNested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.CategoryNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intThe number of completed records to be stored.Fields inherited from class hudson.model.ManagementLink
LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(ProvisioningActivity activity, ProvisioningActivity.Phase phase, PhaseExecutionAttachment attachment) Attach information to activity's phase execution.static CloudStatisticsget()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) voidsave()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:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classManagementLink
-
getRequiredPermission
- Overrides:
getRequiredPermissionin classManagementLink
-
getTarget
- Specified by:
getTargetin interfaceorg.kohsuke.stapler.StaplerProxy
-
getNotCompletedActivities
Get activities that was not completed yet. -
getUrlName
- Specified by:
getUrlNamein interfaceAction- Specified by:
getUrlNamein classManagementLink
-
getDescription
- Overrides:
getDescriptionin 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:
getCategoryNamein 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:
savein interfaceSaveable- Throws:
IOException
-