feat: added functionality inside GET/aggregates

This commit is contained in:
Magel, Denis
2025-09-18 12:16:30 +02:00
parent 1592333ef8
commit e8efde9892
4 changed files with 54 additions and 18 deletions

View File

@@ -1,16 +1,10 @@
# contains the router for the aggregates endpoint
from fastapi import APIRouter, Query
from enum import Enum
from typing import List
from .aggregate_schema import AggregateSchema
from .aggregate_schema import AggregateSchema, MetricEnum
from .aggregate_service import get_aggregates
class MetricEnum(str, Enum):
relative = "relative"
absolute = "absolute"
router = APIRouter(tags=["aggregates"])