Interface ReportService
@Path("/report")
@Consumes({"application/xml","application/json"})
@Produces({"application/xml","application/json"})
public interface ReportService
Retrieves reports for Deployment or Control Tasks A User must have a REPORT_VIEW permission to be able to run these
operations. A User must have at least READ permission on the environment or application for Deployment Task report to
contain data for them. A User must have at least CONTROLTASK_EXECUTE permission on target CI for Control Task report
to contain data for them.
-
Method Summary
Modifier and TypeMethodDescriptionExport audit report containing global and folder permissions of rolesdownloadAuditReport
(List<String> folders) Export audit report containing global and folder permissions of rolesdownloadControlTasksReport
(Date begin, Date end, List<String> states, String taskName, List<String> users, List<com.xebialabs.deployit.engine.api.dto.Ordering> order, String workerName, String taskId, Set<String> targets) Find all archived Control Tasks, optionally filtered by parameters.downloadTaskReport
(Date begin, Date end, List<com.xebialabs.deployit.engine.api.dto.Ordering> order, List<String> users, List<String> taskStates, List<String> taskTypes, String taskId, boolean onlySuccessful, String workerName, List<ConfigurationItemId> configurationItemIds) Find all archived Deployment Tasks, optionally filtered by parameters.getAppEnvStatus
(Date begin, Date end) Fetch number of deployments per application and environment.getControlTasksReport
(Date begin, Date end, List<String> states, String taskName, FetchMode fetchMode, List<String> users, List<com.xebialabs.deployit.engine.api.dto.Ordering> order, String workerName, String taskId, com.xebialabs.deployit.engine.api.dto.Paging paging, Set<String> targets) Find all archived Control Tasks, optionally filtered by parameters.getStatusOverview
(Date begin, Date end) Fetch overall number of deployments per deployment state.getTaskReport
(Date begin, Date end, com.xebialabs.deployit.engine.api.dto.Paging paging, List<com.xebialabs.deployit.engine.api.dto.Ordering> order, List<String> users, List<String> taskStates, List<String> taskTypes, FetchMode fetchMode, String taskId, boolean onlySuccessful, String workerName, List<ConfigurationItemId> configurationItemIds) Find all archived Deployment Tasks, optionally filtered by parameters.Find all Application CIs availble in reporting for given user This will include both names of existing CIs user has permissions for and a list of CIs that are existing in reports but are deleted or renamed.Find all Environment CIs availble in reporting for given user.Stream<com.xebialabs.deployit.engine.api.dto.AuditPreviewRow>
previewAuditReport
(List<String> folders, List<com.xebialabs.deployit.engine.api.dto.Ordering> order, com.xebialabs.deployit.engine.api.dto.Paging paging) Generates preview audit report for local and global permissions.queryByArchivedDate
(Date begin, Date end, com.xebialabs.deployit.engine.api.dto.Paging paging, String order, FetchMode fetchMode, TaskKind taskType) Find all archived Tasks by archived date, optionally filtered by parameters.
-
Method Details
-
listApplications
Find all Application CIs availble in reporting for given user This will include both names of existing CIs user has permissions for and a list of CIs that are existing in reports but are deleted or renamed. Deleted CIs are visible only to user with ADMIN rights.- Returns:
- a list of
ConfigurationItemId
objects
-
getControlTasksReport
@POST @Path("controltasks") Stream<ControlTaskReportLine> getControlTasksReport(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @QueryParam("states") List<String> states, @QueryParam("taskName") String taskName, @QueryParam("fetchMode") FetchMode fetchMode, @QueryParam("users") List<String> users, @QueryParam("order") List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @QueryParam("worker") String workerName, @QueryParam("taskId") String taskId, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, Set<String> targets) Find all archived Control Tasks, optionally filtered by parameters.- Parameters:
users
- (Optional) filter tasks belonging to usersstates
- (Optional) filter on tasks in statestaskName
- (Optional) filter on task namebegin
- (Optional) filter by time interval beginning with dateend
- (Optional) filter by time interval ending with datepaging
- Which page and how many results per page to retrieveorder
- Which ordering to use when listing resultstargets
- filter by list of target CIsworkerName
- (Optional) filter only specified workersfetchMode
- toggle to fetch FULL task with blocks or just task SUMMARYtaskId
- (Optional) filter by task id- Returns:
- a list of
ControlTaskReportLine
objects
-
getTaskReport
@POST @Path("tasks") Stream<DeploymentTaskReportLine> getTaskReport(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, @QueryParam("order") List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @QueryParam("users") List<String> users, @QueryParam("states") List<String> taskStates, @QueryParam("types") List<String> taskTypes, @QueryParam("fetchMode") FetchMode fetchMode, @QueryParam("taskId") String taskId, @QueryParam("onlySuccessful") boolean onlySuccessful, @QueryParam("worker") String workerName, List<ConfigurationItemId> configurationItemIds) Find all archived Deployment Tasks, optionally filtered by parameters.- Parameters:
taskId
- (Optional) filter task with exact taskIdonlySuccessful
- Deprecated use taskStates insteadusers
- (Optional) filter tasks belonging to userstaskStates
- (Optional) filter on tasks in statestaskTypes
- (Optional) filter on tasks typesbegin
- filter by time interval beginning with dateend
- filter by time interval ending with datepaging
- (Optional) Which page and how many results per page to retrieveorder
- (Optional) Which ordering to use when listing resultsfetchMode
- (Optional) toggle to fetch FULL task with blocks or just task SUMMARYworkerName
- (Optional) filter only specified workersconfigurationItemIds
- filter by list of CIs - environment and application correlated to the Deployment task- Returns:
- a list of
DeploymentTaskReportLine
objects
-
downloadControlTasksReport
@POST @Path("download/controltasks") String downloadControlTasksReport(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @QueryParam("states") List<String> states, @QueryParam("taskName") String taskName, @QueryParam("users") List<String> users, @QueryParam("order") List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @QueryParam("worker") String workerName, @QueryParam("taskId") String taskId, Set<String> targets) Find all archived Control Tasks, optionally filtered by parameters.- Parameters:
users
- (Optional) filter tasks belonging to usersstates
- (Optional) filter on tasks in statestaskName
- (Optional) filter on task namebegin
- (Optional) filter by time interval beginning with dateend
- (Optional) filter by time interval ending with dateorder
- (Optional) Which ordering to use when listing resultsworkerName
- (Optional) filter only specified workerstaskId
- (Optional) filter by task idtargets
- filter by list of target CIs- Returns:
- a {java.util.String} containing CSV report
-
downloadTaskReport
@POST @Path("download/tasks") String downloadTaskReport(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @QueryParam("order") List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @QueryParam("users") List<String> users, @QueryParam("states") List<String> taskStates, @QueryParam("types") List<String> taskTypes, @QueryParam("taskId") String taskId, @QueryParam("onlySuccessful") boolean onlySuccessful, @QueryParam("worker") String workerName, List<ConfigurationItemId> configurationItemIds) Find all archived Deployment Tasks, optionally filtered by parameters.- Parameters:
begin
- filter by time interval beginning with dateend
- filter by time interval ending with dateorder
- (Optional) Which ordering to use when listing resultsusers
- (Optional) filter tasks belonging to userstaskStates
- (Optional) filter on tasks in statestaskTypes
- (Optional) filter on tasks typestaskId
- (Optional) filter task with exact taskIdonlySuccessful
- Deprecated use taskStates insteadworkerName
- (Optional) filter only specified workersconfigurationItemIds
- filter by list of CIs - environment and application correlated to the Deployment task- Returns:
- a {java.util.String} containing CSV report
-
listEnvironments
Find all Environment CIs availble in reporting for given user. This will include both names of existing CIs user has permissions for and a list of CIs that are existing in reports but are deleted or renamed. Deleted CIs are visible only to user with ADMIN rights.- Returns:
- a list of
ConfigurationItemId
objects
-
downloadAuditReport
Export audit report containing global and folder permissions of roles- Returns:
- a {java.util.String} containing audit report
-
downloadAuditReport
@POST @Path("download/audit/v2") String downloadAuditReport(@QueryParam("folders") List<String> folders) Export audit report containing global and folder permissions of roles- Parameters:
folders
- Which folders in audit report- Returns:
- a {java.util.String} containing audit report
-
previewAuditReport
@POST @Path("preview/audit") Stream<com.xebialabs.deployit.engine.api.dto.AuditPreviewRow> previewAuditReport(@QueryParam("folders") List<String> folders, @QueryParam("order") List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging) Generates preview audit report for local and global permissions.- Parameters:
folders
- Which folders in audit reportorder
- Which ordering to use when listing resultspaging
- Which page and how many results per page to retrieve- Returns:
- a list of
AuditPreviewRow
objects
-
getStatusOverview
@GET @Path("status-overview") DeploymentsStatusOverview getStatusOverview(@QueryParam("begin") Date begin, @QueryParam("end") Date end) Fetch overall number of deployments per deployment state.- Parameters:
begin
- filter by time interval beginning with dateend
- filter by time interval ending with date- Returns:
- a
DeploymentsStatusOverview
object
-
getAppEnvStatus
@GET @Path("app-env-status") List<AppEnvStatusReport> getAppEnvStatus(@QueryParam("begin") Date begin, @QueryParam("end") Date end) Fetch number of deployments per application and environment.- Parameters:
begin
- filter by time interval beginning with dateend
- filter by time interval ending with date- Returns:
- a list of
AppEnvStatusReport
objects
-
queryByArchivedDate
@GET @Path("tasks/query-by-archived-date") Stream<TaskWithBlock> queryByArchivedDate(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, @QueryParam("order") String order, @QueryParam("fetchMode") FetchMode fetchMode, @QueryParam("taskType") TaskKind taskType) Find all archived Tasks by archived date, optionally filtered by parameters.- Parameters:
begin
- filter by time interval beginning with dateend
- filter by time interval ending with dateorder
- (Optional) Which ordering to use on archived date when listing resultspaging
- (Optional) Which page and how many results per page to retrievefetchMode
- (Optional) toggle to fetch FULL task with blocks or just task SUMMARYtaskType
- (Optional) Filter by task type. DEPLOYMENT or CONTROL_TASK- Returns:
- a list of tasks. response header X-Total-Count determines the total number of tasks.
- Permission:
- report#view
-