@PublicApi
public interface AgentResultsSummaryManager
BuildResultsSummary
when filtering by agentModifier and Type | Method and Description |
---|---|
long |
calculateUtilisedAgentTime(long agentId)
Calculates the time spent performing builds of an agent.
|
int |
countBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent) |
int |
countFailedBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent) |
@NotNull List<BuildResultsSummary> |
getAllBuildResultsSummariesForAgent(@NotNull Long agentId)
Returns all
BuildResultsSummary for the passed BuildAgent 's id. |
@NotNull List<BuildResultsSummary> |
getBuildResultsSummariesForAgent(@NotNull Long agentId,
int firstResult,
int maxResult)
Returns a list of
BuildResultsSummary for the passed BuildAgent 's id in the given range. |
@Nullable BuildResultsSummary |
getLastBuildForAgent(@NotNull String planKey,
@NotNull Long agentId) |
@Nullable BuildResultsSummary |
getLastSuccessfulBuildForAgent(@NotNull String planKey,
@NotNull Long agentId) |
@NotNull List<BuildResultsSummary> |
getLatestSummariesForAgent(@NotNull Long agentId,
@NotNull Date fromDate)
Retrieves build summaries for agent id not older than certain date.
|
@NotNull List<BuildResultsSummary> |
getLatestSummariesForAgent(@NotNull Long agentId,
int maxCount)
Retrieves n last build summaries for agent.
|
@Nullable BuildResultsSummary |
getLatestSummaryForAgent(long agentId) |
long |
getNumberOfSummariesForAgent(long agentId)
Retrieves the total count of build summaries executed on an agent.
|
@Nullable @Nullable BuildResultsSummary getLastBuildForAgent(@NotNull @NotNull String planKey, @NotNull @NotNull Long agentId)
@Nullable @Nullable BuildResultsSummary getLastSuccessfulBuildForAgent(@NotNull @NotNull String planKey, @NotNull @NotNull Long agentId)
int countBuildResultsSummariesForAgent(@NotNull @NotNull BuildAgent buildAgent)
int countFailedBuildResultsSummariesForAgent(@NotNull @NotNull BuildAgent buildAgent)
@NotNull @NotNull List<BuildResultsSummary> getAllBuildResultsSummariesForAgent(@NotNull @NotNull Long agentId)
BuildResultsSummary
for the passed BuildAgent
's id.agentId
- id of the agent to get the result summaries forBuildResultsSummary
for the passed BuildAgent
's id.@NotNull @NotNull List<BuildResultsSummary> getBuildResultsSummariesForAgent(@NotNull @NotNull Long agentId, int firstResult, int maxResult)
BuildResultsSummary
for the passed BuildAgent
's id in the given range.agentId
- firstResult
- maxResult
- long getNumberOfSummariesForAgent(long agentId)
agentId
- id of an agent@NotNull @NotNull List<BuildResultsSummary> getLatestSummariesForAgent(@NotNull @NotNull Long agentId, @NotNull @NotNull Date fromDate)
agentId
- id of an agentfromDate
- beginning of the search periodList
of BuildResultsSummary
@NotNull @NotNull List<BuildResultsSummary> getLatestSummariesForAgent(@NotNull @NotNull Long agentId, int maxCount)
agentId
- id of an agentmaxCount
- maximum number of elements to retrieveList
of BuildResultsSummary
@Nullable @Nullable BuildResultsSummary getLatestSummaryForAgent(long agentId)
long calculateUtilisedAgentTime(long agentId)
agentId
- Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.