Skip to content

Conversation

@sujata-m
Copy link
Contributor

@sujata-m sujata-m commented Feb 20, 2025

DevBoard Task

https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/1720

Changes Introduced

  • Introduces a new GET API /api/v1/service-metrics/:project_group_id endpoint to return the service metrics based on project_group_id.

Impacted Areas for Testing

  • New api /api/v1/service-metrics/:project_group_id to be verified
    Sample 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 -

Project group with ID f6111128-5057-4293-8f81-a5529c703e01 does not exist.

500 Response -

invalid input syntax for type uuid: "f6111128-5057-4293-8f81-a5529c703e0"

- Added the API documentation for `service-metrics`
- Updated the API documentation for `system-metrics`
@sujata-m sujata-m requested review from MashB and susrisha February 20, 2025 06:48
@sujata-m sujata-m merged commit 0679a50 into dev Feb 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants