(
project: str = Query(...),
feature_view_name: Optional[str] = Query(None),
feature_name: Optional[str] = Query(None),
data_source_type: Optional[str] = Query(None),
)
| 346 | |
| 347 | @router.get("/monitoring/metrics/baseline", tags=["Monitoring"]) |
| 348 | async def get_baseline( |
| 349 | project: str = Query(...), |
| 350 | feature_view_name: Optional[str] = Query(None), |
| 351 | feature_name: Optional[str] = Query(None), |
| 352 | data_source_type: Optional[str] = Query(None), |
| 353 | ): |
| 354 | store = _get_store() |
| 355 | if feature_view_name: |
| 356 | fv = store.registry.get_feature_view( |
| 357 | name=feature_view_name, project=project |
| 358 | ) |
| 359 | assert_permissions(fv, actions=[AuthzedAction.DESCRIBE]) |
| 360 | |
| 361 | svc = _get_monitoring_service() |
| 362 | return svc.get_baseline( |
| 363 | project=project, |
| 364 | feature_view_name=feature_view_name, |
| 365 | feature_name=feature_name, |
| 366 | data_source_type=data_source_type, |
| 367 | ) |
| 368 | |
| 369 | @router.get("/monitoring/metrics/timeseries", tags=["Monitoring"]) |
| 370 | async def get_timeseries( |
nothing calls this directly
no test coverage detected