Auto-detect date ranges from log data and compute all granularities.
(request: AutoComputeLogRequest)
| 202 | |
| 203 | @router.post("/monitoring/auto_compute/log", tags=["Monitoring"]) |
| 204 | async def auto_compute_log(request: AutoComputeLogRequest): |
| 205 | """Auto-detect date ranges from log data and compute all granularities.""" |
| 206 | store = _get_store() |
| 207 | if request.feature_service_name: |
| 208 | fs = store.registry.get_feature_service( |
| 209 | name=request.feature_service_name, project=request.project |
| 210 | ) |
| 211 | assert_permissions(fs, actions=[AuthzedAction.UPDATE]) |
| 212 | |
| 213 | svc = _get_monitoring_service() |
| 214 | try: |
| 215 | result = svc.auto_compute_log_metrics( |
| 216 | project=request.project, |
| 217 | feature_service_name=request.feature_service_name, |
| 218 | ) |
| 219 | return result |
| 220 | except Exception as e: |
| 221 | raise HTTPException(status_code=500, detail=str(e)) |
| 222 | |
| 223 | @router.get("/monitoring/jobs/{job_id}", tags=["Monitoring"]) |
| 224 | async def get_job_status(job_id: str): |
nothing calls this directly
no test coverage detected