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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
downloadAuditReport()
Export audit report containing global and folder permissions of rolesjava.lang.String
downloadAuditReport(java.util.List<java.lang.String> folders)
Export audit report containing global and folder permissions of rolesjava.lang.String
downloadControlTasksReport(Date begin, Date end, java.util.List<java.lang.String> states, java.lang.String taskName, java.util.List<java.lang.String> users, java.util.List<com.xebialabs.deployit.engine.api.dto.Ordering> order, java.lang.String workerName, java.lang.String taskId, java.util.Set<java.lang.String> targets)
Find all archived Control Tasks, optionally filtered by parameters.java.lang.String
downloadTaskReport(Date begin, Date end, java.util.List<com.xebialabs.deployit.engine.api.dto.Ordering> order, java.util.List<java.lang.String> users, java.util.List<java.lang.String> taskStates, java.util.List<java.lang.String> taskTypes, java.lang.String taskId, boolean onlySuccessful, java.lang.String workerName, java.util.List<ConfigurationItemId> configurationItemIds)
Find all archived Deployment Tasks, optionally filtered by parameters.java.util.stream.Stream<ControlTaskReportLine>
getControlTasksReport(Date begin, Date end, java.util.List<java.lang.String> states, java.lang.String taskName, FetchMode fetchMode, java.util.List<java.lang.String> users, java.util.List<com.xebialabs.deployit.engine.api.dto.Ordering> order, java.lang.String workerName, java.lang.String taskId, com.xebialabs.deployit.engine.api.dto.Paging paging, java.util.Set<java.lang.String> targets)
Find all archived Control Tasks, optionally filtered by parameters.java.util.stream.Stream<DeploymentTaskReportLine>
getTaskReport(Date begin, Date end, com.xebialabs.deployit.engine.api.dto.Paging paging, java.util.List<com.xebialabs.deployit.engine.api.dto.Ordering> order, java.util.List<java.lang.String> users, java.util.List<java.lang.String> taskStates, java.util.List<java.lang.String> taskTypes, FetchMode fetchMode, java.lang.String taskId, boolean onlySuccessful, java.lang.String workerName, java.util.List<ConfigurationItemId> configurationItemIds)
Find all archived Deployment Tasks, optionally filtered by parameters.java.util.List<ConfigurationItemId>
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.java.util.List<ConfigurationItemId>
listEnvironments()
Find all Environment CIs availble in reporting for given user.java.util.stream.Stream<com.xebialabs.deployit.engine.api.dto.AuditPreviewRow>
previewAuditReport(java.util.List<java.lang.String> folders, java.util.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.
-
-
-
Method Detail
-
listApplications
@GET @Path("applications") java.util.List<ConfigurationItemId> 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") java.util.stream.Stream<ControlTaskReportLine> getControlTasksReport(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @QueryParam("states") java.util.List<java.lang.String> states, @QueryParam("taskName") java.lang.String taskName, @QueryParam("fetchMode") FetchMode fetchMode, @QueryParam("users") java.util.List<java.lang.String> users, @QueryParam("order") java.util.List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @QueryParam("worker") java.lang.String workerName, @QueryParam("taskId") java.lang.String taskId, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, java.util.Set<java.lang.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") java.util.stream.Stream<DeploymentTaskReportLine> getTaskReport(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, @QueryParam("order") java.util.List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @QueryParam("users") java.util.List<java.lang.String> users, @QueryParam("states") java.util.List<java.lang.String> taskStates, @QueryParam("types") java.util.List<java.lang.String> taskTypes, @QueryParam("fetchMode") FetchMode fetchMode, @QueryParam("taskId") java.lang.String taskId, @QueryParam("onlySuccessful") boolean onlySuccessful, @QueryParam("worker") java.lang.String workerName, java.util.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") java.lang.String downloadControlTasksReport(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @QueryParam("states") java.util.List<java.lang.String> states, @QueryParam("taskName") java.lang.String taskName, @QueryParam("users") java.util.List<java.lang.String> users, @QueryParam("order") java.util.List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @QueryParam("worker") java.lang.String workerName, @QueryParam("taskId") java.lang.String taskId, java.util.Set<java.lang.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") java.lang.String downloadTaskReport(@QueryParam("begin") Date begin, @QueryParam("end") Date end, @QueryParam("order") java.util.List<com.xebialabs.deployit.engine.api.dto.Ordering> order, @QueryParam("users") java.util.List<java.lang.String> users, @QueryParam("states") java.util.List<java.lang.String> taskStates, @QueryParam("types") java.util.List<java.lang.String> taskTypes, @QueryParam("taskId") java.lang.String taskId, @QueryParam("onlySuccessful") boolean onlySuccessful, @QueryParam("worker") java.lang.String workerName, java.util.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
@GET @Path("environments") java.util.List<ConfigurationItemId> 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
@POST @Path("download/audit") java.lang.String 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") java.lang.String downloadAuditReport(@QueryParam("folders") java.util.List<java.lang.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") java.util.stream.Stream<com.xebialabs.deployit.engine.api.dto.AuditPreviewRow> previewAuditReport(@QueryParam("folders") java.util.List<java.lang.String> folders, @QueryParam("order") java.util.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
-
-