@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(BuildAgent buildAgent) |
int |
countFailedBuildResultsSummariesForAgent(BuildAgent buildAgent) |
List<BuildResultsSummary> |
getAllBuildResultsSummariesForAgent(Long agentId)
Returns all
BuildResultsSummary for the passed BuildAgent 's id. |
List<BuildResultsSummary> |
getBuildResultsSummariesForAgent(Long agentId,
int firstResult,
int maxResult)
Returns a list of
BuildResultsSummary for the passed BuildAgent 's id in the given range. |
BuildResultsSummary |
getLastBuildForAgent(String planKey,
Long agentId) |
BuildResultsSummary |
getLastSuccessfulBuildForAgent(String planKey,
Long agentId) |
List<BuildResultsSummary> |
getLatestSummariesForAgent(Long agentId,
Date fromDate)
Retrieves build summaries for agent id not older than certain date.
|
List<BuildResultsSummary> |
getLatestSummariesForAgent(Long agentId,
int maxCount)
Retrieves n last build summaries for agent.
|
BuildResultsSummary |
getLatestSummaryForAgent(long agentId) |
long |
getNumberOfSummariesForAgent(long agentId)
Retrieves the total count of build summaries executed on an agent.
|
@Nullable BuildResultsSummary getLastBuildForAgent(@NotNull String planKey, @NotNull Long agentId)
@Nullable BuildResultsSummary getLastSuccessfulBuildForAgent(@NotNull String planKey, @NotNull Long agentId)
int countBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent)
int countFailedBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent)
@NotNull List<BuildResultsSummary> getAllBuildResultsSummariesForAgent(@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 List<BuildResultsSummary> getBuildResultsSummariesForAgent(@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 List<BuildResultsSummary> getLatestSummariesForAgent(@NotNull Long agentId, @NotNull Date fromDate)
agentId
- id of an agentfromDate
- beginning of the search periodList
of BuildResultsSummary
@NotNull List<BuildResultsSummary> getLatestSummariesForAgent(@NotNull Long agentId, int maxCount)
agentId
- id of an agentmaxCount
- maximum number of elements to retrieveList
of BuildResultsSummary
@Nullable BuildResultsSummary getLatestSummaryForAgent(long agentId)
long calculateUtilisedAgentTime(long agentId)
agentId
- Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.