Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature]: automated report generation and command line interface for generating reports #866

Open
sjlewis-jpl opened this issue Jun 5, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request needs triage Issue that requires triage pcm.r03-disp-s1 pcm.r03-dswx-s1 PCM Release 3 - DSWx-S1 pcm.r04 PCM Release 4

Comments

@sjlewis-jpl
Copy link
Contributor

Checked for duplicates

No - I haven't checked

Alternatives considered

Yes - and alternatives don't suffice

Related problems

It's frustrating to wait on operators to click through a slow and cumbersome interface to generate reports. I'd like the ability to generate them via the command-line, which would allow a single script call to generate everything needed for a given time period (and could also be automated with a chron job).

Describe the feature request

Command-line interface to generate reports - anything that can be generated with the Reporting UI. Automatically generating them with PCM code is optional - I'm OK with operator-controlled & CM'd scripts to do that as well.

@sjlewis-jpl sjlewis-jpl added enhancement New feature or request needs triage Issue that requires triage labels Jun 5, 2024
@hhlee445
Copy link
Contributor

hhlee445 commented Jun 5, 2024

For production time summary report:
curl -kL "http://<mozart ip>/bach-api/reports/ProductionTimeSummaryReport?startDateTime=2024-06-01T00:00:00&endDateTime=2024-06-30T23:59:59&reportType=sdp&mime=application/zip" > <output filename>

For production time detailed report:
curl -kL "http://<mozart ip>/bach-api/reports/ProductionTimeDetailedReport?startDateTime=2024-06-01T00:00:00&endDateTime=2024-06-30T23:59:59&reportType=sdp&mime=text/csv". > <output filename>

For retrieval time summary report:
curl -kL "http://<mozart ip>/bach-api/reports/RetrievalTimeSummaryReport?startDateTime=2024-06-01T00:00:00&endDateTime=2024-06-30T23:59:59&reportType=sdp&mime=application/zip" > <output filename>

For retrieval time detailed report:
curl -kL "http://<mozart ip>/bach-api/reports/RetrievalTimeDetailedReport?startDateTime=2024-06-01T00:00:00&endDateTime=2024-06-30T23:59:59&reportType=sdp&mime=text/csv" > <output filename>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage Issue that requires triage pcm.r03-disp-s1 pcm.r03-dswx-s1 PCM Release 3 - DSWx-S1 pcm.r04 PCM Release 4
Projects
None yet
Development

No branches or pull requests

3 participants