Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions tdei-api-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -3201,6 +3201,48 @@
]
}
},
"/api/v1/service-metrics/{tdei_project_group_id}": {
"get": {
"tags": [
"Metrics"
],
"summary": "Gets the Service metrics",
"description": "This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.",
"operationId": "service-metrics",
"responses": {
"200": {
"description": "Successful response - Returns the service metrics.",
"content": {
"application/json": {
"schema": {
"title": "ServiceMetricsResponse",
"type": "object",
"$ref": "#/components/schemas/ServiceMetrics",
"description": "Holds the response data"
}
}
}
},
"401": {
"description": "Unauthenticated request"
},
"404": {
"description": "Not found error."
},
"500": {
"description": "Internal server error."
}
},
"security": [
{
"ApiKey": []
},
{
"AuthorizationToken": []
}
]
}
},
"/api/v1/recover-password": {
"post": {
"tags": [
Expand Down Expand Up @@ -4099,6 +4141,38 @@
"required": [
"totalUploads"
]
},
"apiCalls": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"minimum": 0
},
"byApi": {
"type": "array",
"items": {
"type": "object",
"properties": {
"endpoint": {
"type": "string"
},
"count": {
"type": "integer",
"minimum": 0
}
},
"required": [
"endpoint",
"count"
]
}
}
},
"required": [
"total",
"byApi"
]
}
}
},
Expand Down Expand Up @@ -4201,6 +4275,43 @@
"dataMetrics",
"datasetMetrics"
]
},
"ServiceMetrics": {
"type": "object",
"properties": {
"services": {
"type": "array",
"items": {
"type": "object",
"properties": {
"service_id": {
"type": "string",
"format": "uuid"
},
"service_name": {
"type": "string"
},
"dataset_count": {
"type": "integer",
"minimum": 0
},
"total_unzipped_size_mb": {
"type": "number",
"minimum": 0
}
},
"required": [
"service_id",
"service_name",
"dataset_count",
"total_unzipped_size_mb"
]
}
}
},
"required": [
"services"
]
}
},
"securitySchemes": {
Expand Down
Loading