Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: squash
-
Labels:None
-
Story Points:7
-
Epic Link:
-
Team:SQuaRE
Description
Implement the /kpms API resource to feed the KPMs dashboard. It should be possible to query metrics and specification tags as well as specification query metadata stored as JSON fields in the SQuaSH database.
API changes required by DM-14751
Attachments
Issue Links
- is child task of
-
DM-14751 Implement KPM dashboard in squash-bokeh
- Invalid
Example of query:
Return metrics and specifications for a given job_id and dataset_name, look for metrics tagged as photometry and with measurements on filter_name r only.
http://localhost:5000/kpms?job_id=2&dataset_name=validation_data_cfht&metric_tag=photometry&filter_name=r
Return metrics for a given job_id and dataset_name look for metrics tagged as astrometry and design specifications only.
http://localhost:5000/kpms?job_id=2&dataset_name=validation_data_cfht&metric_tag=astrometry&specification_tag=design
Return metrics and specifications for a given job_id and dataset_name, look for metrics tagged as photometry, with measurements on filter_name r and design specifications only.
http://localhost:5000/kpms?job_id=2&dataset_name=validation_data_cfht&metric_tag=photometry&specification_tag=design&filter_name=r