* refactor(chalice): refactored errors * refactor(chalice): refactored metrics/cards/dashboards refactor(chalice): refactored sessions refactor(chalice): refactored sourcemaps
15 lines
532 B
Python
15 lines
532 B
Python
import schemas
|
|
from chalicelib.core.metrics import product_anaytics2
|
|
from fastapi import Depends
|
|
from or_dependencies import OR_context
|
|
from routers.base import get_routers
|
|
|
|
|
|
public_app, app, app_apikey = get_routers()
|
|
|
|
|
|
@app.post('/{projectId}/events/search', tags=["dashboard"])
|
|
def search_events(projectId: int,
|
|
# data: schemas.CreateDashboardSchema = Body(...),
|
|
context: schemas.CurrentContext = Depends(OR_context)):
|
|
return product_anaytics2.search_events(project_id=projectId, data={})
|