Interface AgentResultsSummaryManager
- All Known Implementing Classes:
AgentBuildResultsSummaryManagerImpl
@PublicApi
public interface AgentResultsSummaryManager
Manager relating to
BuildResultsSummary when filtering by agent-
Method Summary
Modifier and TypeMethodDescriptionlongcalculateUtilisedAgentTime(long agentId) Calculates the time spent performing builds of an agent.intcountBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent) intcountFailedBuildResultsSummariesForAgent(@NotNull BuildAgent buildAgent) @NotNull List<BuildResultsSummary>getAllBuildResultsSummariesForAgent(@NotNull Long agentId) Returns allBuildResultsSummaryfor the passedBuildAgent's id.@NotNull List<BuildResultsSummary>getBuildResultsSummariesForAgent(@NotNull Long agentId, int firstResult, int maxResult) Returns a list ofBuildResultsSummaryfor the passedBuildAgent's id in the given range.@Nullable BuildResultsSummarygetLastBuildForAgent(@NotNull String planKey, @NotNull Long agentId) @Nullable BuildResultsSummarygetLastSuccessfulBuildForAgent(@NotNull String planKey, @NotNull Long agentId) @NotNull List<BuildResultsSummary>getLatestSummariesForAgent(@NotNull Long agentId, int maxCount) Retrieves n last build summaries for agent.@NotNull List<BuildResultsSummary>getLatestSummariesForAgent(@NotNull Long agentId, @NotNull Date fromDate) Retrieves build summaries for agent id not older than certain date.@Nullable BuildResultsSummarygetLatestSummaryForAgent(long agentId) longgetNumberOfSummariesForAgent(long agentId) Retrieves the total count of build summaries executed on an agent.
-
Method Details
-
getLastBuildForAgent
@Nullable @Nullable BuildResultsSummary getLastBuildForAgent(@NotNull @NotNull String planKey, @NotNull @NotNull Long agentId) -
getLastSuccessfulBuildForAgent
@Nullable @Nullable BuildResultsSummary getLastSuccessfulBuildForAgent(@NotNull @NotNull String planKey, @NotNull @NotNull Long agentId) -
countBuildResultsSummariesForAgent
-
countFailedBuildResultsSummariesForAgent
-
getAllBuildResultsSummariesForAgent
@NotNull @NotNull List<BuildResultsSummary> getAllBuildResultsSummariesForAgent(@NotNull @NotNull Long agentId) Returns allBuildResultsSummaryfor the passedBuildAgent's id.- Parameters:
agentId- id of the agent to get the result summaries for- Returns:
- all
BuildResultsSummaryfor the passedBuildAgent's id.
-
getBuildResultsSummariesForAgent
@NotNull @NotNull List<BuildResultsSummary> getBuildResultsSummariesForAgent(@NotNull @NotNull Long agentId, int firstResult, int maxResult) Returns a list ofBuildResultsSummaryfor the passedBuildAgent's id in the given range.- Parameters:
agentId-firstResult-maxResult-- Returns:
-
getNumberOfSummariesForAgent
long getNumberOfSummariesForAgent(long agentId) Retrieves the total count of build summaries executed on an agent.- Parameters:
agentId- id of an agent- Returns:
- number of summaries
-
getLatestSummariesForAgent
@NotNull @NotNull List<BuildResultsSummary> getLatestSummariesForAgent(@NotNull @NotNull Long agentId, @NotNull @NotNull Date fromDate) Retrieves build summaries for agent id not older than certain date.- Parameters:
agentId- id of an agentfromDate- beginning of the search period- Returns:
ListofBuildResultsSummary
-
getLatestSummariesForAgent
@NotNull @NotNull List<BuildResultsSummary> getLatestSummariesForAgent(@NotNull @NotNull Long agentId, int maxCount) Retrieves n last build summaries for agent.- Parameters:
agentId- id of an agentmaxCount- maximum number of elements to retrieve- Returns:
ListofBuildResultsSummary
-
getLatestSummaryForAgent
-
calculateUtilisedAgentTime
long calculateUtilisedAgentTime(long agentId) Calculates the time spent performing builds of an agent.- Parameters:
agentId-- Returns:
-