API Endpoint for TASK-1720 #117
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DevBoard Task
https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/1720
Changes Introduced
/api/v1/service-metrics/:project_group_idendpoint to return the service metrics based onproject_group_id.Impacted Areas for Testing
/api/v1/service-metrics/:project_group_idto be verifiedSample API Response -
Success Response -
{ "services": [ { "service_id": "48504101-4ccd-45fc-be9c-99fedb0d3b9b", "service_name": "SNOHOMISH COUNTY", "dataset_count": 1, "total_unzipped_size_mb": 2.92 }, { "service_id": "499e09db-c801-4c85-b77a-036bb339c82f", "service_name": "BALTIMORE COUNTY", "dataset_count": 1, "total_unzipped_size_mb": 24.78 }, { "service_id": "ce5de72a-fd1e-4320-9513-3c663acc13be", "service_name": "MULTNOMAH COUNTY", "dataset_count": 1, "total_unzipped_size_mb": 150.38 }, { "service_id": "d3ade021-78e9-4627-917c-b9bc25b07521", "service_name": "HARFORD COUNTY", "dataset_count": 1, "total_unzipped_size_mb": 45.49 }, { "service_id": "df4c6f39-8a32-4641-bd0f-a0d7a72d3c99", "service_name": "KING COUNTY", "dataset_count": 1, "total_unzipped_size_mb": 31.45 }, { "service_id": "e56cab99-af51-481f-b2e0-c1cde1ef9694", "service_name": "COLUMBIA COUNTY", "dataset_count": 1, "total_unzipped_size_mb": 0.98 } ] }404 Response -
500 Response -