Hello guys !
We have a cloud prefect suscription and we want to put some monitoring using its API,
I saw that we can check worker processes within a workspace using this endpoint :
https://api.prefect.cloud/api/accounts/{account_id}/workspaces/{workspace_id}/work_pools/{work_pool_name}/workers/filter
The response for my case is quite non understandable. I dont understand why the last_heartbeat_time and the status did not change since with the multiple runs that happened.
For the filter I used a large temporal filter that includes today's date,
Any clue ?
Maybe I am using the wrong endpoint also ..
{
"id": "xxx-xxx",
"created": "2024-03-11T14
0346.498814+00:00",
"updated": "2024-03-11T14
0346.498824+00:00",
"name": "string",
"work_pool_id": "xxx-xxx",
"last_heartbeat_time": "2024-03-11T14
0504.749455+00:00",
"status": "OFFLINE",
"heartbeat_interval_seconds": 0
}
Thank you 🙂