MCPcopy Create free account
hub / github.com/feast-dev/feast / auto_compute_log

Function auto_compute_log

sdk/python/feast/api/registry/rest/monitoring.py:204–221  ·  view source on GitHub ↗

Auto-detect date ranges from log data and compute all granularities.

(request: AutoComputeLogRequest)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 5

assert_permissionsFunction · 0.90
_get_storeFunction · 0.85
_get_monitoring_serviceFunction · 0.85
get_feature_serviceMethod · 0.45

Tested by

no test coverage detected