Class DashboardSection
java.lang.Object
io.jenkins.plugins.batchcontrol.action.DashboardSection
- All Implemented Interfaces:
ModelObject,org.kohsuke.stapler.StaplerProxy
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class DashboardSection
extends Object
implements ModelObject, org.kohsuke.stapler.StaplerProxy
The run record dashboard at
/batch-control/dashboard/ (SPEC item 10): the most recent
builds of every job with cause, user, parameters, result, duration, who aborted it, and — for
APPROVED_REQUEST builds — a link to the originating run request.
D-67 (hosting review round 3): at most the 50 most recent runs, newest first,
with a link to History for the rest; no look-back window and no paging. The read is bounded by
500 records whatever the store holds, newest bucket first. Requires
ViewHistory for the whole subtree (getTarget()); records are read-only, so
PUT/DELETE/PATCH are 405 (HttpVerbs).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionduration(long durationMs) Human-readable duration.Human-readable timestamp.getItems()The most recent runs, newest first, at mostLIMIT.intgetLimit()Most runs listed, for the page text.getLinks()Link predicates: a link to another screen is rendered only if the user may open it.intOver-long lines (over 1 MiB) skipped while reading (security-11 N-02); the CSV export skips the same lines, so the screen says so rather than look complete.Permissions for this screen'sl:layout(the same set its section gate checks).parameters(Map<String, String> parameters) One-line parameter rendering; values come from the record already masked.Root-relative build URL (job/a/job/b/12/), or null for plain text (D-44).
-
Field Details
-
LIMIT
public static final int LIMITMost runs the dashboard lists (D-67).- See Also:
-
SCAN
public static final int SCANRecords read at most, newest appended first. A bucket is ordered by completion, the list by start time, so a little more thanLIMITis read to pick the most recently started.- See Also:
-
-
Constructor Details
-
DashboardSection
public DashboardSection()
-
-
Method Details
-
getTarget
- Specified by:
getTargetin interfaceorg.kohsuke.stapler.StaplerProxy
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
getViewPermissions
Permissions for this screen'sl:layout(the same set its section gate checks). -
getLinks
Link predicates: a link to another screen is rendered only if the user may open it. -
getItems
The most recent runs, newest first, at mostLIMIT. -
getLimit
public int getLimit()Most runs listed, for the page text. -
getOversized
public int getOversized()Over-long lines (over 1 MiB) skipped while reading (security-11 N-02); the CSV export skips the same lines, so the screen says so rather than look complete. -
format
Human-readable timestamp. -
duration
Human-readable duration. -
runUrl
Root-relative build URL (job/a/job/b/12/), or null for plain text (D-44). -
parameters
One-line parameter rendering; values come from the record already masked.
-