-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
herve.le-bars
committed
Oct 5, 2024
1 parent
2a1b65c
commit b67533e
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from fastapi import APIRouter, Depends, Query | ||
from redis import Redis | ||
from bloom.config import settings | ||
from bloom.container import UseCases | ||
from pydantic import BaseModel, Field | ||
from typing_extensions import Annotated, Literal | ||
from datetime import datetime | ||
|
||
router = APIRouter() | ||
redis_client = Redis(host=settings.redis_host, port=settings.redis_port, db=0) | ||
|
||
@router.get("/metrics/vessels-in-activity/total", tags=['metrics']) | ||
def read_metrics_vessels_in_activity_total(start_at: datetime, end_at: datetime = None): | ||
pass | ||
|
||
@router.get("/metrics/zone-visited/total", tags=['metrics']) | ||
def read_metrics_vessels_in_activity_total(start_at: datetime, end_at: datetime = None): | ||
pass | ||
|
||
@router.get("/metrics/vessels/{vessel_id}/visits/{visit_type}", tags=['metrics']) | ||
def read_metrics_vessels_visits_by_visit_type( | ||
vessel_id: int, | ||
visit_type: str, | ||
start_at: datetime, | ||
end_at: datetime = None, | ||
limit: int = 10, | ||
orderBy: str = 'DESC'): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters