Class ReportsImpl
- All Implemented Interfaces:
Reports
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteReports(List<String> reportIds) Deletes generated reports in bulk.booleandeleteScheduledReports(List<String> scheduledIds) Deletes scheduled report definitions in bulk.byte[]downloadReport(String reportId) Downloads a single generated report's file.byte[]downloadReports(List<String> reportIds) Downloads one or more generated reports as a combined file (zip).generateReport(String scheduledId) Generates a report from a scheduled report definition.getReportById(String reportId) Retrieves a generated report by id.getReportDefinition(String reportName) Retrieves a single report definition by name.Lists the available report definitions.Lists generated reports.getReports(Integer durationDays, List<ReportStatus> statuses, List<ReportSort> sorts) Lists generated reports with the spec's optional filters.getScheduledReport(String scheduledId) Retrieves a scheduled report by id.List<? extends ScheduledReport> Lists scheduled report definitions.scheduleReport(ScheduleReportRequest request) Creates a scheduled report definition.updateScheduledReport(String scheduledId, ScheduleReportRequest request) Updates an existing scheduled report definition.
-
Constructor Details
-
ReportsImpl
public ReportsImpl()
-
-
Method Details
-
getReports
Description copied from interface:ReportsLists generated reports.Maps to
GET /v1/reportCenter/reports(getReports).- Specified by:
getReportsin interfaceReports- Returns:
- a paginated list of reports
-
getReports
public PaginatedList<Report> getReports(Integer durationDays, List<ReportStatus> statuses, List<ReportSort> sorts) Description copied from interface:ReportsLists generated reports with the spec's optional filters.Maps to
GET /v1/reportCenter/reports(getReports) withduration,statusesandsorts. Lists are sent comma-separated (collectionFormat: csv); anullor empty argument is not sent and the service default applies (7 days, all statuses,-GENERATED_DATE).- Specified by:
getReportsin interfaceReports- Parameters:
durationDays- number of days back to search, 1 to 365, ornullstatuses- report statuses to include (IN_PROGRESS,SUCCESS,ERRORin the spec), ornullsorts- sort order, ornull- Returns:
- a paginated list of reports
-
getReportById
Description copied from interface:ReportsRetrieves a generated report by id.Maps to
GET /v1/reportCenter/reports/{reportId}(getReportById).- Specified by:
getReportByIdin interfaceReports- Parameters:
reportId- the report id- Returns:
- the matching report
-
deleteReports
Description copied from interface:ReportsDeletes generated reports in bulk.Maps to
DELETE /v1/reportCenter/reports(deleteReports). This is a best-effort bulk delete: the response carries one result per requested report id, each with areportIdand a per-reportstatus(SUCCESSorERROR), so callers can detect partial failures.- Specified by:
deleteReportsin interfaceReports- Parameters:
reportIds- the report ids to delete- Returns:
- the per-report delete results
-
downloadReports
Description copied from interface:ReportsDownloads one or more generated reports as a combined file (zip).Maps to
GET /v1/reportCenter/reports/files(downloadReports).- Specified by:
downloadReportsin interfaceReports- Parameters:
reportIds- the report ids to download- Returns:
- the downloaded file bytes
-
downloadReport
Description copied from interface:ReportsDownloads a single generated report's file.Maps to
GET /v1/reportCenter/reports/{reportId}/file(downloadReport).- Specified by:
downloadReportin interfaceReports- Parameters:
reportId- the report id- Returns:
- the report file bytes
-
getScheduledReports
Description copied from interface:ReportsLists scheduled report definitions.Maps to
GET /v1/reportCenter/reports/scheduler(getScheduledReports).- Specified by:
getScheduledReportsin interfaceReports- Returns:
- the list of scheduled reports
-
getScheduledReport
Description copied from interface:ReportsRetrieves a scheduled report by id.Maps to
GET /v1/reportCenter/reports/scheduler/{scheduledId}(getScheduledReport).- Specified by:
getScheduledReportin interfaceReports- Parameters:
scheduledId- the scheduled report id- Returns:
- the matching scheduled report
-
scheduleReport
Description copied from interface:ReportsCreates a scheduled report definition.Maps to
POST /v1/reportCenter/reports/scheduler(scheduleReport).- Specified by:
scheduleReportin interfaceReports- Parameters:
request- the schedule request body- Returns:
- the created scheduled report
-
updateScheduledReport
Description copied from interface:ReportsUpdates an existing scheduled report definition.Maps to
PUT /v1/reportCenter/reports/scheduler/{scheduledId}(updateScheduledReport).- Specified by:
updateScheduledReportin interfaceReports- Parameters:
scheduledId- the scheduled report idrequest- the updated schedule request body- Returns:
- the updated scheduled report
-
deleteScheduledReports
Description copied from interface:ReportsDeletes scheduled report definitions in bulk.Maps to
DELETE /v1/reportCenter/reports/scheduler(deleteScheduledReports).- Specified by:
deleteScheduledReportsin interfaceReports- Parameters:
scheduledIds- the scheduled report ids to delete- Returns:
trueif the request succeeded
-
generateReport
Description copied from interface:ReportsGenerates a report from a scheduled report definition.Maps to
POST /v1/reportCenter/reports/scheduler/{scheduledId}/report(generateReport).- Specified by:
generateReportin interfaceReports- Parameters:
scheduledId- the scheduled report id- Returns:
- the generated report
-
getReportDefinitions
Description copied from interface:ReportsLists the available report definitions.Maps to
GET /v1/reportCenter/reports/definitions(getReportDefinitions).- Specified by:
getReportDefinitionsin interfaceReports- Returns:
- the list of report definitions
-
getReportDefinition
Description copied from interface:ReportsRetrieves a single report definition by name.Maps to
GET /v1/reportCenter/reports/definitions/{reportName}(getReportDefinition).- Specified by:
getReportDefinitionin interfaceReports- Parameters:
reportName- the report definition name- Returns:
- the matching report definition
-